From 3f0c7f253bde4d77d4cd6ce8779a84bd93317a3b Mon Sep 17 00:00:00 2001 From: Luki Dwi Prasanti <80494785+lukidwiprasanti@users.noreply.github.com> Date: Tue, 11 Jun 2024 15:23:06 +0700 Subject: [PATCH] Initial Commit --- SPK.sql | 564 + imt/.editorconfig | 18 + imt/.env.example | 52 + imt/.gitattributes | 10 + imt/.gitignore | 15 + imt/.styleci.yml | 13 + imt/README.md | 64 + imt/app/Console/Kernel.php | 32 + imt/app/Exceptions/Handler.php | 41 + .../Auth/AuthenticatedSessionController.php | 48 + .../Auth/ConfirmablePasswordController.php | 41 + ...mailVerificationNotificationController.php | 25 + .../EmailVerificationPromptController.php | 22 + .../Auth/NewPasswordController.php | 69 + .../Controllers/Auth/PasswordController.php | 29 + .../Auth/PasswordResetLinkController.php | 48 + .../Auth/RegisteredUserController.php | 51 + .../Auth/VerifyEmailController.php | 28 + imt/app/Http/Controllers/Controller.php | 13 + .../Http/Controllers/DashboardController.php | 26 + .../Http/Controllers/KriteriaController.php | 99 + .../Http/Controllers/MakananController.php | 279 + imt/app/Http/Controllers/PasienController.php | 219 + .../Controllers/PerhitunganController.php | 110 + .../Http/Controllers/ProfileController.php | 48 + imt/app/Http/Kernel.php | 67 + imt/app/Http/Middleware/Authenticate.php | 21 + imt/app/Http/Middleware/EncryptCookies.php | 17 + .../PreventRequestsDuringMaintenance.php | 17 + .../Middleware/RedirectIfAuthenticated.php | 32 + imt/app/Http/Middleware/TrimStrings.php | 19 + imt/app/Http/Middleware/TrustHosts.php | 20 + imt/app/Http/Middleware/TrustProxies.php | 28 + imt/app/Http/Middleware/VerifyCsrfToken.php | 17 + imt/app/Http/Requests/Auth/LoginRequest.php | 94 + .../Http/Requests/ProfileUpdateRequest.php | 23 + imt/app/Models/Aktivitas.php | 22 + imt/app/Models/DetailMakanan.php | 25 + imt/app/Models/JenisKelamin.php | 21 + imt/app/Models/KadarGula.php | 22 + imt/app/Models/KebutuhanKalori.php | 21 + imt/app/Models/Kriteria.php | 23 + imt/app/Models/KriteriaMakanan.php | 30 + imt/app/Models/Makanan.php | 24 + imt/app/Models/Pasien.php | 46 + imt/app/Models/TipeKriteria.php | 21 + imt/app/Models/User.php | 45 + imt/app/Providers/AppServiceProvider.php | 28 + imt/app/Providers/AuthServiceProvider.php | 30 + .../Providers/BroadcastServiceProvider.php | 21 + imt/app/Providers/EventServiceProvider.php | 32 + imt/app/Providers/RouteServiceProvider.php | 63 + imt/app/View/Components/AppLayout.php | 17 + imt/app/View/Components/GuestLayout.php | 17 + imt/artisan | 53 + imt/bootstrap/app.php | 55 + imt/bootstrap/cache/.gitignore | 2 + imt/composer.json | 63 + imt/composer.lock | 8351 ++++++ imt/config/app.php | 197 + imt/config/auth.php | 111 + imt/config/broadcasting.php | 67 + imt/config/cache.php | 110 + imt/config/cors.php | 34 + imt/config/database.php | 147 + imt/config/filesystems.php | 73 + imt/config/hashing.php | 52 + imt/config/logging.php | 119 + imt/config/mail.php | 117 + imt/config/queue.php | 93 + imt/config/sanctum.php | 65 + imt/config/services.php | 33 + imt/config/session.php | 201 + imt/config/view.php | 36 + imt/database/.gitignore | 1 + imt/database/factories/UserFactory.php | 42 + .../2014_10_12_000000_create_users_table.php | 37 + ...12_100000_create_password_resets_table.php | 32 + ..._08_19_000000_create_failed_jobs_table.php | 36 + ...01_create_personal_access_tokens_table.php | 36 + ...7_004425_create_kebutuhan_kalori_table.php | 32 + ...4_03_02_004256_create_kadar_gula_table.php | 32 + ...3_07_140843_create_jenis_kelamin_table.php | 32 + ...24_03_07_140900_create_aktivitas_table.php | 32 + ...3_07_141620_create_tipe_kriteria_table.php | 32 + ...2024_03_07_141639_create_makanan_table.php | 34 + .../2024_03_08_003124_create_pasien_table.php | 44 + ...024_03_09_055535_create_kriteria_table.php | 36 + ...2_025108_create_kriteria_makanan_table.php | 37 + ..._12_025353_create_detail_makanan_table.php | 37 + imt/database/seeders/AktivitasSeeder.php | 28 + imt/database/seeders/DatabaseSeeder.php | 33 + imt/database/seeders/JenisKelaminSeeder.php | 27 + imt/database/seeders/JenisMakananSeeder.php | 27 + imt/database/seeders/KadarGulaSeeder.php | 28 + .../seeders/KebutuhanKaloriSeeder.php | 33 + imt/database/seeders/KriteriaSeeder.php | 29 + imt/database/seeders/TipeKriteriaSeeder.php | 27 + imt/database/seeders/UserSeeder.php | 33 + imt/lang/en.json | 7 + imt/lang/en/auth.php | 20 + imt/lang/en/pagination.php | 19 + imt/lang/en/passwords.php | 22 + imt/lang/en/validation.php | 163 + imt/package-lock.json | 17327 ++++++++++++ imt/package.json | 22 + imt/phpunit.xml | 31 + imt/postcss.config.js | 6 + imt/public/.htaccess | 21 + imt/public/css/app.css | 1752 ++ .../datatables/dataTables.bootstrap4.css | 210 + .../datatables/dataTables.bootstrap4.js | 184 + .../datatables/dataTables.bootstrap4.min.css | 252 + .../datatables/dataTables.bootstrap4.min.js | 91 + imt/public/datatables/jquery.dataTables.js | 15387 ++++++++++ .../datatables/jquery.dataTables.min.js | 4061 +++ imt/public/favicon.ico | 0 imt/public/img/makanan.png | Bin 0 -> 485325 bytes imt/public/index.php | 55 + imt/public/js/app.js | 23172 ++++++++++++++++ imt/public/js/datatables-demo.js | 4 + imt/public/mix-manifest.json | 4 + imt/public/robots.txt | 2 + imt/resources/css/app.css | 3 + imt/resources/js/app.js | 7 + imt/resources/js/bootstrap.js | 28 + .../views/auth/confirm-password.blade.php | 27 + .../views/auth/forgot-password.blade.php | 27 + imt/resources/views/auth/login.blade.php | 45 + imt/resources/views/auth/register.blade.php | 52 + .../views/auth/reset-password.blade.php | 51 + .../views/auth/verify-email.blade.php | 31 + .../components/application-logo.blade.php | 3 + .../components/auth-session-status.blade.php | 7 + .../views/components/danger-button.blade.php | 3 + .../views/components/dropdown-link.blade.php | 1 + .../views/components/dropdown.blade.php | 43 + .../views/components/input-error.blade.php | 9 + .../views/components/input-label.blade.php | 5 + .../views/components/modal.blade.php | 77 + .../views/components/nav-link.blade.php | 11 + .../views/components/primary-button.blade.php | 3 + .../components/responsive-nav-link.blade.php | 11 + .../components/secondary-button.blade.php | 3 + .../views/components/text-input.blade.php | 3 + imt/resources/views/includes/meta.blade.php | 4 + imt/resources/views/includes/navbar.blade.php | 59 + imt/resources/views/includes/script.blade.php | 60 + imt/resources/views/includes/style.blade.php | 98 + imt/resources/views/layouts/app.blade.php | 21 + imt/resources/views/layouts/guest.blade.php | 29 + imt/resources/views/layouts/main.blade.php | 23 + .../views/layouts/navigation.blade.php | 100 + .../views/pages/home/index.blade.php | 61 + .../views/pages/kriteria/create.blade.php | 75 + .../views/pages/kriteria/edit.blade.php | 74 + .../views/pages/kriteria/index.blade.php | 55 + .../views/pages/makanan/create.blade.php | 175 + .../views/pages/makanan/detail.blade.php | 810 + .../views/pages/makanan/edit.blade.php | 176 + .../views/pages/makanan/index.blade.php | 53 + .../views/pages/pasien/create.blade.php | 125 + .../views/pages/pasien/detail.blade.php | 59 + .../views/pages/pasien/edit.blade.php | 126 + .../views/pages/pasien/index.blade.php | 61 + .../views/pages/perhitungan/cetak.blade.php | 125 + .../views/pages/perhitungan/index.blade.php | 266 + imt/resources/views/profile/edit.blade.php | 66 + imt/routes/api.php | 19 + imt/routes/auth.php | 59 + imt/routes/channels.php | 18 + imt/routes/console.php | 19 + imt/routes/web.php | 74 + imt/storage/app/.gitignore | 3 + imt/storage/app/public/.gitignore | 2 + imt/storage/framework/.gitignore | 9 + imt/storage/framework/cache/.gitignore | 3 + imt/storage/framework/cache/data/.gitignore | 2 + imt/storage/framework/sessions/.gitignore | 2 + imt/storage/framework/testing/.gitignore | 2 + imt/storage/framework/views/.gitignore | 2 + imt/storage/logs/.gitignore | 2 + imt/tailwind.config.js | 20 + imt/tests/CreatesApplication.php | 22 + imt/tests/Feature/Auth/AuthenticationTest.php | 45 + .../Feature/Auth/EmailVerificationTest.php | 65 + .../Feature/Auth/PasswordConfirmationTest.php | 44 + imt/tests/Feature/Auth/PasswordResetTest.php | 71 + imt/tests/Feature/Auth/PasswordUpdateTest.php | 51 + imt/tests/Feature/Auth/RegistrationTest.php | 32 + imt/tests/Feature/ExampleTest.php | 21 + imt/tests/Feature/ProfileTest.php | 99 + imt/tests/TestCase.php | 10 + imt/tests/Unit/ExampleTest.php | 18 + imt/vite.config.js | 14 + imt/webpack.mix.js | 17 + 196 files changed, 80311 insertions(+) create mode 100644 SPK.sql create mode 100644 imt/.editorconfig create mode 100644 imt/.env.example create mode 100644 imt/.gitattributes create mode 100644 imt/.gitignore create mode 100644 imt/.styleci.yml create mode 100644 imt/README.md create mode 100644 imt/app/Console/Kernel.php create mode 100644 imt/app/Exceptions/Handler.php create mode 100644 imt/app/Http/Controllers/Auth/AuthenticatedSessionController.php create mode 100644 imt/app/Http/Controllers/Auth/ConfirmablePasswordController.php create mode 100644 imt/app/Http/Controllers/Auth/EmailVerificationNotificationController.php create mode 100644 imt/app/Http/Controllers/Auth/EmailVerificationPromptController.php create mode 100644 imt/app/Http/Controllers/Auth/NewPasswordController.php create mode 100644 imt/app/Http/Controllers/Auth/PasswordController.php create mode 100644 imt/app/Http/Controllers/Auth/PasswordResetLinkController.php create mode 100644 imt/app/Http/Controllers/Auth/RegisteredUserController.php create mode 100644 imt/app/Http/Controllers/Auth/VerifyEmailController.php create mode 100644 imt/app/Http/Controllers/Controller.php create mode 100644 imt/app/Http/Controllers/DashboardController.php create mode 100644 imt/app/Http/Controllers/KriteriaController.php create mode 100644 imt/app/Http/Controllers/MakananController.php create mode 100644 imt/app/Http/Controllers/PasienController.php create mode 100644 imt/app/Http/Controllers/PerhitunganController.php create mode 100644 imt/app/Http/Controllers/ProfileController.php create mode 100644 imt/app/Http/Kernel.php create mode 100644 imt/app/Http/Middleware/Authenticate.php create mode 100644 imt/app/Http/Middleware/EncryptCookies.php create mode 100644 imt/app/Http/Middleware/PreventRequestsDuringMaintenance.php create mode 100644 imt/app/Http/Middleware/RedirectIfAuthenticated.php create mode 100644 imt/app/Http/Middleware/TrimStrings.php create mode 100644 imt/app/Http/Middleware/TrustHosts.php create mode 100644 imt/app/Http/Middleware/TrustProxies.php create mode 100644 imt/app/Http/Middleware/VerifyCsrfToken.php create mode 100644 imt/app/Http/Requests/Auth/LoginRequest.php create mode 100644 imt/app/Http/Requests/ProfileUpdateRequest.php create mode 100644 imt/app/Models/Aktivitas.php create mode 100644 imt/app/Models/DetailMakanan.php create mode 100644 imt/app/Models/JenisKelamin.php create mode 100644 imt/app/Models/KadarGula.php create mode 100644 imt/app/Models/KebutuhanKalori.php create mode 100644 imt/app/Models/Kriteria.php create mode 100644 imt/app/Models/KriteriaMakanan.php create mode 100644 imt/app/Models/Makanan.php create mode 100644 imt/app/Models/Pasien.php create mode 100644 imt/app/Models/TipeKriteria.php create mode 100644 imt/app/Models/User.php create mode 100644 imt/app/Providers/AppServiceProvider.php create mode 100644 imt/app/Providers/AuthServiceProvider.php create mode 100644 imt/app/Providers/BroadcastServiceProvider.php create mode 100644 imt/app/Providers/EventServiceProvider.php create mode 100644 imt/app/Providers/RouteServiceProvider.php create mode 100644 imt/app/View/Components/AppLayout.php create mode 100644 imt/app/View/Components/GuestLayout.php create mode 100644 imt/artisan create mode 100644 imt/bootstrap/app.php create mode 100644 imt/bootstrap/cache/.gitignore create mode 100644 imt/composer.json create mode 100644 imt/composer.lock create mode 100644 imt/config/app.php create mode 100644 imt/config/auth.php create mode 100644 imt/config/broadcasting.php create mode 100644 imt/config/cache.php create mode 100644 imt/config/cors.php create mode 100644 imt/config/database.php create mode 100644 imt/config/filesystems.php create mode 100644 imt/config/hashing.php create mode 100644 imt/config/logging.php create mode 100644 imt/config/mail.php create mode 100644 imt/config/queue.php create mode 100644 imt/config/sanctum.php create mode 100644 imt/config/services.php create mode 100644 imt/config/session.php create mode 100644 imt/config/view.php create mode 100644 imt/database/.gitignore create mode 100644 imt/database/factories/UserFactory.php create mode 100644 imt/database/migrations/2014_10_12_000000_create_users_table.php create mode 100644 imt/database/migrations/2014_10_12_100000_create_password_resets_table.php create mode 100644 imt/database/migrations/2019_08_19_000000_create_failed_jobs_table.php create mode 100644 imt/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php create mode 100644 imt/database/migrations/2024_02_27_004425_create_kebutuhan_kalori_table.php create mode 100644 imt/database/migrations/2024_03_02_004256_create_kadar_gula_table.php create mode 100644 imt/database/migrations/2024_03_07_140843_create_jenis_kelamin_table.php create mode 100644 imt/database/migrations/2024_03_07_140900_create_aktivitas_table.php create mode 100644 imt/database/migrations/2024_03_07_141620_create_tipe_kriteria_table.php create mode 100644 imt/database/migrations/2024_03_07_141639_create_makanan_table.php create mode 100644 imt/database/migrations/2024_03_08_003124_create_pasien_table.php create mode 100644 imt/database/migrations/2024_03_09_055535_create_kriteria_table.php create mode 100644 imt/database/migrations/2024_03_12_025108_create_kriteria_makanan_table.php create mode 100644 imt/database/migrations/2024_03_12_025353_create_detail_makanan_table.php create mode 100644 imt/database/seeders/AktivitasSeeder.php create mode 100644 imt/database/seeders/DatabaseSeeder.php create mode 100644 imt/database/seeders/JenisKelaminSeeder.php create mode 100644 imt/database/seeders/JenisMakananSeeder.php create mode 100644 imt/database/seeders/KadarGulaSeeder.php create mode 100644 imt/database/seeders/KebutuhanKaloriSeeder.php create mode 100644 imt/database/seeders/KriteriaSeeder.php create mode 100644 imt/database/seeders/TipeKriteriaSeeder.php create mode 100644 imt/database/seeders/UserSeeder.php create mode 100644 imt/lang/en.json create mode 100644 imt/lang/en/auth.php create mode 100644 imt/lang/en/pagination.php create mode 100644 imt/lang/en/passwords.php create mode 100644 imt/lang/en/validation.php create mode 100644 imt/package-lock.json create mode 100644 imt/package.json create mode 100644 imt/phpunit.xml create mode 100644 imt/postcss.config.js create mode 100644 imt/public/.htaccess create mode 100644 imt/public/css/app.css create mode 100644 imt/public/datatables/dataTables.bootstrap4.css create mode 100644 imt/public/datatables/dataTables.bootstrap4.js create mode 100644 imt/public/datatables/dataTables.bootstrap4.min.css create mode 100644 imt/public/datatables/dataTables.bootstrap4.min.js create mode 100644 imt/public/datatables/jquery.dataTables.js create mode 100644 imt/public/datatables/jquery.dataTables.min.js create mode 100644 imt/public/favicon.ico create mode 100644 imt/public/img/makanan.png create mode 100644 imt/public/index.php create mode 100644 imt/public/js/app.js create mode 100644 imt/public/js/datatables-demo.js create mode 100644 imt/public/mix-manifest.json create mode 100644 imt/public/robots.txt create mode 100644 imt/resources/css/app.css create mode 100644 imt/resources/js/app.js create mode 100644 imt/resources/js/bootstrap.js create mode 100644 imt/resources/views/auth/confirm-password.blade.php create mode 100644 imt/resources/views/auth/forgot-password.blade.php create mode 100644 imt/resources/views/auth/login.blade.php create mode 100644 imt/resources/views/auth/register.blade.php create mode 100644 imt/resources/views/auth/reset-password.blade.php create mode 100644 imt/resources/views/auth/verify-email.blade.php create mode 100644 imt/resources/views/components/application-logo.blade.php create mode 100644 imt/resources/views/components/auth-session-status.blade.php create mode 100644 imt/resources/views/components/danger-button.blade.php create mode 100644 imt/resources/views/components/dropdown-link.blade.php create mode 100644 imt/resources/views/components/dropdown.blade.php create mode 100644 imt/resources/views/components/input-error.blade.php create mode 100644 imt/resources/views/components/input-label.blade.php create mode 100644 imt/resources/views/components/modal.blade.php create mode 100644 imt/resources/views/components/nav-link.blade.php create mode 100644 imt/resources/views/components/primary-button.blade.php create mode 100644 imt/resources/views/components/responsive-nav-link.blade.php create mode 100644 imt/resources/views/components/secondary-button.blade.php create mode 100644 imt/resources/views/components/text-input.blade.php create mode 100644 imt/resources/views/includes/meta.blade.php create mode 100644 imt/resources/views/includes/navbar.blade.php create mode 100644 imt/resources/views/includes/script.blade.php create mode 100644 imt/resources/views/includes/style.blade.php create mode 100644 imt/resources/views/layouts/app.blade.php create mode 100644 imt/resources/views/layouts/guest.blade.php create mode 100644 imt/resources/views/layouts/main.blade.php create mode 100644 imt/resources/views/layouts/navigation.blade.php create mode 100644 imt/resources/views/pages/home/index.blade.php create mode 100644 imt/resources/views/pages/kriteria/create.blade.php create mode 100644 imt/resources/views/pages/kriteria/edit.blade.php create mode 100644 imt/resources/views/pages/kriteria/index.blade.php create mode 100644 imt/resources/views/pages/makanan/create.blade.php create mode 100644 imt/resources/views/pages/makanan/detail.blade.php create mode 100644 imt/resources/views/pages/makanan/edit.blade.php create mode 100644 imt/resources/views/pages/makanan/index.blade.php create mode 100644 imt/resources/views/pages/pasien/create.blade.php create mode 100644 imt/resources/views/pages/pasien/detail.blade.php create mode 100644 imt/resources/views/pages/pasien/edit.blade.php create mode 100644 imt/resources/views/pages/pasien/index.blade.php create mode 100644 imt/resources/views/pages/perhitungan/cetak.blade.php create mode 100644 imt/resources/views/pages/perhitungan/index.blade.php create mode 100644 imt/resources/views/profile/edit.blade.php create mode 100644 imt/routes/api.php create mode 100644 imt/routes/auth.php create mode 100644 imt/routes/channels.php create mode 100644 imt/routes/console.php create mode 100644 imt/routes/web.php create mode 100644 imt/storage/app/.gitignore create mode 100644 imt/storage/app/public/.gitignore create mode 100644 imt/storage/framework/.gitignore create mode 100644 imt/storage/framework/cache/.gitignore create mode 100644 imt/storage/framework/cache/data/.gitignore create mode 100644 imt/storage/framework/sessions/.gitignore create mode 100644 imt/storage/framework/testing/.gitignore create mode 100644 imt/storage/framework/views/.gitignore create mode 100644 imt/storage/logs/.gitignore create mode 100644 imt/tailwind.config.js create mode 100644 imt/tests/CreatesApplication.php create mode 100644 imt/tests/Feature/Auth/AuthenticationTest.php create mode 100644 imt/tests/Feature/Auth/EmailVerificationTest.php create mode 100644 imt/tests/Feature/Auth/PasswordConfirmationTest.php create mode 100644 imt/tests/Feature/Auth/PasswordResetTest.php create mode 100644 imt/tests/Feature/Auth/PasswordUpdateTest.php create mode 100644 imt/tests/Feature/Auth/RegistrationTest.php create mode 100644 imt/tests/Feature/ExampleTest.php create mode 100644 imt/tests/Feature/ProfileTest.php create mode 100644 imt/tests/TestCase.php create mode 100644 imt/tests/Unit/ExampleTest.php create mode 100644 imt/vite.config.js create mode 100644 imt/webpack.mix.js diff --git a/SPK.sql b/SPK.sql new file mode 100644 index 0000000..bf0158a --- /dev/null +++ b/SPK.sql @@ -0,0 +1,564 @@ +-- phpMyAdmin SQL Dump +-- version 5.1.1 +-- https://www.phpmyadmin.net/ +-- +-- Host: 127.0.0.1 +-- Generation Time: Mar 29, 2024 at 01:44 PM +-- Server version: 8.0.30 +-- PHP Version: 7.3.31 + +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +START TRANSACTION; +SET time_zone = "+00:00"; + + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8mb4 */; + +-- +-- Database: `imt` +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `aktivitas` +-- + +CREATE TABLE `aktivitas` ( + `id` bigint UNSIGNED NOT NULL, + `nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- +-- Dumping data for table `aktivitas` +-- + +INSERT INTO `aktivitas` (`id`, `nama`, `created_at`, `updated_at`) VALUES +(1, 'Ringan', '2024-03-29 05:43:21', '2024-03-29 05:43:21'), +(2, 'Sedang', '2024-03-29 05:43:21', '2024-03-29 05:43:21'), +(3, 'Berat', '2024-03-29 05:43:21', '2024-03-29 05:43:21'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `detail_makanan` +-- + +CREATE TABLE `detail_makanan` ( + `id` bigint UNSIGNED NOT NULL, + `makanan_id` bigint UNSIGNED NOT NULL, + `waktu` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `nama_makanan` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `berat` double NOT NULL, + `kalori` double NOT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `failed_jobs` +-- + +CREATE TABLE `failed_jobs` ( + `id` bigint UNSIGNED NOT NULL, + `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, + `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, + `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, + `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, + `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `jenis_kelamin` +-- + +CREATE TABLE `jenis_kelamin` ( + `id` bigint UNSIGNED NOT NULL, + `jenis_kelamin` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- +-- Dumping data for table `jenis_kelamin` +-- + +INSERT INTO `jenis_kelamin` (`id`, `jenis_kelamin`, `created_at`, `updated_at`) VALUES +(1, 'Laki-Laki', '2024-03-29 05:43:21', '2024-03-29 05:43:21'), +(2, 'Perempuan', '2024-03-29 05:43:21', '2024-03-29 05:43:21'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `kadar_gula` +-- + +CREATE TABLE `kadar_gula` ( + `id` bigint UNSIGNED NOT NULL, + `kadar_gula` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- +-- Dumping data for table `kadar_gula` +-- + +INSERT INTO `kadar_gula` (`id`, `kadar_gula`, `created_at`, `updated_at`) VALUES +(1, 'Normal - (70 - 193)', '2024-03-29 05:43:21', '2024-03-29 05:43:21'), +(2, 'Pre Diabetes - (140 - 199)', '2024-03-29 05:43:21', '2024-03-29 05:43:21'), +(3, 'Diabetes - (>= 200)', '2024-03-29 05:43:21', '2024-03-29 05:43:21'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `kebutuhan_kalori` +-- + +CREATE TABLE `kebutuhan_kalori` ( + `id` bigint UNSIGNED NOT NULL, + `kebutuhan_kalori` int NOT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- +-- Dumping data for table `kebutuhan_kalori` +-- + +INSERT INTO `kebutuhan_kalori` (`id`, `kebutuhan_kalori`, `created_at`, `updated_at`) VALUES +(1, 1100, '2024-03-29 05:43:21', '2024-03-29 05:43:21'), +(2, 1300, '2024-03-29 05:43:21', '2024-03-29 05:43:21'), +(3, 1500, '2024-03-29 05:43:21', '2024-03-29 05:43:21'), +(4, 1700, '2024-03-29 05:43:21', '2024-03-29 05:43:21'), +(5, 1900, '2024-03-29 05:43:21', '2024-03-29 05:43:21'), +(6, 2100, '2024-03-29 05:43:21', '2024-03-29 05:43:21'), +(7, 2300, '2024-03-29 05:43:21', '2024-03-29 05:43:21'), +(8, 2500, '2024-03-29 05:43:21', '2024-03-29 05:43:21'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `kriteria` +-- + +CREATE TABLE `kriteria` ( + `id` bigint UNSIGNED NOT NULL, + `nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `kode` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `tipe_kriteria_id` bigint UNSIGNED NOT NULL, + `bobot` double NOT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- +-- Dumping data for table `kriteria` +-- + +INSERT INTO `kriteria` (`id`, `nama`, `kode`, `tipe_kriteria_id`, `bobot`, `created_at`, `updated_at`) VALUES +(1, 'Karbohidrat', 'C1', 1, 0.3, '2024-03-29 05:43:21', '2024-03-29 05:43:21'), +(2, 'Lemak', 'C2', 2, 0.25, '2024-03-29 05:43:21', '2024-03-29 05:43:21'), +(3, 'Protein', 'C3', 1, 0.25, '2024-03-29 05:43:21', '2024-03-29 05:43:21'), +(4, 'Serat', 'C4', 1, 0.1, '2024-03-29 05:43:21', '2024-03-29 05:43:21'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `kriteria_makanan` +-- + +CREATE TABLE `kriteria_makanan` ( + `id` bigint UNSIGNED NOT NULL, + `kriteria_id` bigint UNSIGNED NOT NULL, + `makanan_id` bigint UNSIGNED NOT NULL, + `nilai` double NOT NULL, + `keterangan` int NOT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `makanan` +-- + +CREATE TABLE `makanan` ( + `id` bigint UNSIGNED NOT NULL, + `kode` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `kalori` int DEFAULT NULL, + `alternatif` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `migrations` +-- + +CREATE TABLE `migrations` ( + `id` int UNSIGNED NOT NULL, + `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `batch` int NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- +-- Dumping data for table `migrations` +-- + +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES +(1, '2014_10_12_000000_create_users_table', 1), +(2, '2014_10_12_100000_create_password_resets_table', 1), +(3, '2019_08_19_000000_create_failed_jobs_table', 1), +(4, '2019_12_14_000001_create_personal_access_tokens_table', 1), +(5, '2024_02_27_004425_create_kebutuhan_kalori_table', 1), +(6, '2024_03_02_004256_create_kadar_gula_table', 1), +(7, '2024_03_07_140843_create_jenis_kelamin_table', 1), +(8, '2024_03_07_140900_create_aktivitas_table', 1), +(9, '2024_03_07_141620_create_tipe_kriteria_table', 1), +(10, '2024_03_07_141639_create_makanan_table', 1), +(11, '2024_03_08_003124_create_pasien_table', 1), +(12, '2024_03_09_055535_create_kriteria_table', 1), +(13, '2024_03_12_025108_create_kriteria_makanan_table', 1), +(14, '2024_03_12_025353_create_detail_makanan_table', 1); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `pasien` +-- + +CREATE TABLE `pasien` ( + `id` bigint UNSIGNED NOT NULL, + `nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `jenis_kelamin_id` bigint UNSIGNED NOT NULL, + `umur` int NOT NULL, + `berat` double NOT NULL, + `tinggi` double NOT NULL, + `aktivitas_id` bigint UNSIGNED NOT NULL, + `kadar_gula_id` bigint UNSIGNED NOT NULL, + `kebutuhan_kalori_id` bigint UNSIGNED NOT NULL, + `status` enum('Underweight',' Normal','Overweight','Obesitas') COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `password_resets` +-- + +CREATE TABLE `password_resets` ( + `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp NULL DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `personal_access_tokens` +-- + +CREATE TABLE `personal_access_tokens` ( + `id` bigint UNSIGNED NOT NULL, + `tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `tokenable_id` bigint UNSIGNED NOT NULL, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL, + `abilities` text COLLATE utf8mb4_unicode_ci, + `last_used_at` timestamp NULL DEFAULT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `tipe_kriteria` +-- + +CREATE TABLE `tipe_kriteria` ( + `id` bigint UNSIGNED NOT NULL, + `nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- +-- Dumping data for table `tipe_kriteria` +-- + +INSERT INTO `tipe_kriteria` (`id`, `nama`, `created_at`, `updated_at`) VALUES +(1, 'Benefit', '2024-03-29 05:43:21', '2024-03-29 05:43:21'), +(2, 'Cost', '2024-03-29 05:43:21', '2024-03-29 05:43:21'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `users` +-- + +CREATE TABLE `users` ( + `id` bigint UNSIGNED NOT NULL, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `nama_lengkap` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `email_verified_at` timestamp NULL DEFAULT NULL, + `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- +-- Dumping data for table `users` +-- + +INSERT INTO `users` (`id`, `name`, `nama_lengkap`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES +(1, 'Admin', 'Admin', 'anandacahya.com@gmail.com', '2024-03-10 11:29:38', '$2y$10$ZK1RHZH4Ac4.831bZ//jke4AySWPP1tSQEpzb1KncyIyc.5ajaMu6', NULL, '2024-03-29 05:43:21', '2024-03-29 05:43:21'); + +-- +-- Indexes for dumped tables +-- + +-- +-- Indexes for table `aktivitas` +-- +ALTER TABLE `aktivitas` + ADD PRIMARY KEY (`id`); + +-- +-- Indexes for table `detail_makanan` +-- +ALTER TABLE `detail_makanan` + ADD PRIMARY KEY (`id`), + ADD KEY `detail_makanan_makanan_id_foreign` (`makanan_id`); + +-- +-- Indexes for table `failed_jobs` +-- +ALTER TABLE `failed_jobs` + ADD PRIMARY KEY (`id`), + ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`); + +-- +-- Indexes for table `jenis_kelamin` +-- +ALTER TABLE `jenis_kelamin` + ADD PRIMARY KEY (`id`); + +-- +-- Indexes for table `kadar_gula` +-- +ALTER TABLE `kadar_gula` + ADD PRIMARY KEY (`id`); + +-- +-- Indexes for table `kebutuhan_kalori` +-- +ALTER TABLE `kebutuhan_kalori` + ADD PRIMARY KEY (`id`); + +-- +-- Indexes for table `kriteria` +-- +ALTER TABLE `kriteria` + ADD PRIMARY KEY (`id`), + ADD KEY `kriteria_tipe_kriteria_id_foreign` (`tipe_kriteria_id`); + +-- +-- Indexes for table `kriteria_makanan` +-- +ALTER TABLE `kriteria_makanan` + ADD PRIMARY KEY (`id`), + ADD KEY `kriteria_makanan_kriteria_id_foreign` (`kriteria_id`), + ADD KEY `kriteria_makanan_makanan_id_foreign` (`makanan_id`); + +-- +-- Indexes for table `makanan` +-- +ALTER TABLE `makanan` + ADD PRIMARY KEY (`id`); + +-- +-- Indexes for table `migrations` +-- +ALTER TABLE `migrations` + ADD PRIMARY KEY (`id`); + +-- +-- Indexes for table `pasien` +-- +ALTER TABLE `pasien` + ADD PRIMARY KEY (`id`), + ADD KEY `pasien_jenis_kelamin_id_foreign` (`jenis_kelamin_id`), + ADD KEY `pasien_aktivitas_id_foreign` (`aktivitas_id`), + ADD KEY `pasien_kadar_gula_id_foreign` (`kadar_gula_id`), + ADD KEY `pasien_kebutuhan_kalori_id_foreign` (`kebutuhan_kalori_id`); + +-- +-- Indexes for table `password_resets` +-- +ALTER TABLE `password_resets` + ADD KEY `password_resets_email_index` (`email`); + +-- +-- Indexes for table `personal_access_tokens` +-- +ALTER TABLE `personal_access_tokens` + ADD PRIMARY KEY (`id`), + ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`), + ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`); + +-- +-- Indexes for table `tipe_kriteria` +-- +ALTER TABLE `tipe_kriteria` + ADD PRIMARY KEY (`id`); + +-- +-- Indexes for table `users` +-- +ALTER TABLE `users` + ADD PRIMARY KEY (`id`), + ADD UNIQUE KEY `users_email_unique` (`email`); + +-- +-- AUTO_INCREMENT for dumped tables +-- + +-- +-- AUTO_INCREMENT for table `aktivitas` +-- +ALTER TABLE `aktivitas` + MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; + +-- +-- AUTO_INCREMENT for table `detail_makanan` +-- +ALTER TABLE `detail_makanan` + MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT; + +-- +-- AUTO_INCREMENT for table `failed_jobs` +-- +ALTER TABLE `failed_jobs` + MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT; + +-- +-- AUTO_INCREMENT for table `jenis_kelamin` +-- +ALTER TABLE `jenis_kelamin` + MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; + +-- +-- AUTO_INCREMENT for table `kadar_gula` +-- +ALTER TABLE `kadar_gula` + MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; + +-- +-- AUTO_INCREMENT for table `kebutuhan_kalori` +-- +ALTER TABLE `kebutuhan_kalori` + MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; + +-- +-- AUTO_INCREMENT for table `kriteria` +-- +ALTER TABLE `kriteria` + MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; + +-- +-- AUTO_INCREMENT for table `kriteria_makanan` +-- +ALTER TABLE `kriteria_makanan` + MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT; + +-- +-- AUTO_INCREMENT for table `makanan` +-- +ALTER TABLE `makanan` + MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT; + +-- +-- AUTO_INCREMENT for table `migrations` +-- +ALTER TABLE `migrations` + MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; + +-- +-- AUTO_INCREMENT for table `pasien` +-- +ALTER TABLE `pasien` + MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT; + +-- +-- AUTO_INCREMENT for table `personal_access_tokens` +-- +ALTER TABLE `personal_access_tokens` + MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT; + +-- +-- AUTO_INCREMENT for table `tipe_kriteria` +-- +ALTER TABLE `tipe_kriteria` + MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; + +-- +-- AUTO_INCREMENT for table `users` +-- +ALTER TABLE `users` + MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; + +-- +-- Constraints for dumped tables +-- + +-- +-- Constraints for table `detail_makanan` +-- +ALTER TABLE `detail_makanan` + ADD CONSTRAINT `detail_makanan_makanan_id_foreign` FOREIGN KEY (`makanan_id`) REFERENCES `makanan` (`id`); + +-- +-- Constraints for table `kriteria` +-- +ALTER TABLE `kriteria` + ADD CONSTRAINT `kriteria_tipe_kriteria_id_foreign` FOREIGN KEY (`tipe_kriteria_id`) REFERENCES `tipe_kriteria` (`id`); + +-- +-- Constraints for table `kriteria_makanan` +-- +ALTER TABLE `kriteria_makanan` + ADD CONSTRAINT `kriteria_makanan_kriteria_id_foreign` FOREIGN KEY (`kriteria_id`) REFERENCES `kriteria` (`id`), + ADD CONSTRAINT `kriteria_makanan_makanan_id_foreign` FOREIGN KEY (`makanan_id`) REFERENCES `makanan` (`id`); + +-- +-- Constraints for table `pasien` +-- +ALTER TABLE `pasien` + ADD CONSTRAINT `pasien_aktivitas_id_foreign` FOREIGN KEY (`aktivitas_id`) REFERENCES `aktivitas` (`id`), + ADD CONSTRAINT `pasien_jenis_kelamin_id_foreign` FOREIGN KEY (`jenis_kelamin_id`) REFERENCES `jenis_kelamin` (`id`), + ADD CONSTRAINT `pasien_kadar_gula_id_foreign` FOREIGN KEY (`kadar_gula_id`) REFERENCES `kadar_gula` (`id`), + ADD CONSTRAINT `pasien_kebutuhan_kalori_id_foreign` FOREIGN KEY (`kebutuhan_kalori_id`) REFERENCES `kebutuhan_kalori` (`id`); +COMMIT; + +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; diff --git a/imt/.editorconfig b/imt/.editorconfig new file mode 100644 index 0000000..1671c9b --- /dev/null +++ b/imt/.editorconfig @@ -0,0 +1,18 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 4 +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_size = 2 + +[docker-compose.yml] +indent_size = 4 diff --git a/imt/.env.example b/imt/.env.example new file mode 100644 index 0000000..8510237 --- /dev/null +++ b/imt/.env.example @@ -0,0 +1,52 @@ +APP_NAME=Laravel +APP_ENV=local +APP_KEY= +APP_DEBUG=true +APP_URL=http://localhost + +LOG_CHANNEL=stack +LOG_DEPRECATIONS_CHANNEL=null +LOG_LEVEL=debug + +DB_CONNECTION=mysql +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE=laravel +DB_USERNAME=root +DB_PASSWORD= + +BROADCAST_DRIVER=log +CACHE_DRIVER=file +FILESYSTEM_DISK=local +QUEUE_CONNECTION=sync +SESSION_DRIVER=file +SESSION_LIFETIME=120 + +MEMCACHED_HOST=127.0.0.1 + +REDIS_HOST=127.0.0.1 +REDIS_PASSWORD=null +REDIS_PORT=6379 + +MAIL_MAILER=smtp +MAIL_HOST=mailhog +MAIL_PORT=1025 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=null +MAIL_FROM_ADDRESS=null +MAIL_FROM_NAME="${APP_NAME}" + +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION=us-east-1 +AWS_BUCKET= +AWS_USE_PATH_STYLE_ENDPOINT=false + +PUSHER_APP_ID= +PUSHER_APP_KEY= +PUSHER_APP_SECRET= +PUSHER_APP_CLUSTER=mt1 + +MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" +MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" diff --git a/imt/.gitattributes b/imt/.gitattributes new file mode 100644 index 0000000..510d996 --- /dev/null +++ b/imt/.gitattributes @@ -0,0 +1,10 @@ +* text=auto + +*.blade.php diff=html +*.css diff=css +*.html diff=html +*.md diff=markdown +*.php diff=php + +/.github export-ignore +CHANGELOG.md export-ignore diff --git a/imt/.gitignore b/imt/.gitignore new file mode 100644 index 0000000..eb003b0 --- /dev/null +++ b/imt/.gitignore @@ -0,0 +1,15 @@ +/node_modules +/public/hot +/public/storage +/storage/*.key +/vendor +.env +.env.backup +.phpunit.result.cache +docker-compose.override.yml +Homestead.json +Homestead.yaml +npm-debug.log +yarn-error.log +/.idea +/.vscode diff --git a/imt/.styleci.yml b/imt/.styleci.yml new file mode 100644 index 0000000..679a631 --- /dev/null +++ b/imt/.styleci.yml @@ -0,0 +1,13 @@ +php: + preset: laravel + version: 8 + disabled: + - no_unused_imports + finder: + not-name: + - index.php +js: + finder: + not-name: + - webpack.mix.js +css: true diff --git a/imt/README.md b/imt/README.md new file mode 100644 index 0000000..f171eca --- /dev/null +++ b/imt/README.md @@ -0,0 +1,64 @@ +
+ + + +## About Laravel + +Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: + +- [Simple, fast routing engine](https://laravel.com/docs/routing). +- [Powerful dependency injection container](https://laravel.com/docs/container). +- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. +- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). +- Database agnostic [schema migrations](https://laravel.com/docs/migrations). +- [Robust background job processing](https://laravel.com/docs/queues). +- [Real-time event broadcasting](https://laravel.com/docs/broadcasting). + +Laravel is accessible, powerful, and provides tools required for large, robust applications. + +## Learning Laravel + +Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. + +If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. + +## Laravel Sponsors + +We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell). + +### Premium Partners + +- **[Vehikl](https://vehikl.com/)** +- **[Tighten Co.](https://tighten.co)** +- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)** +- **[64 Robots](https://64robots.com)** +- **[Cubet Techno Labs](https://cubettech.com)** +- **[Cyber-Duck](https://cyber-duck.co.uk)** +- **[Many](https://www.many.co.uk)** +- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)** +- **[DevSquad](https://devsquad.com)** +- **[Curotec](https://www.curotec.com/services/technologies/laravel/)** +- **[OP.GG](https://op.gg)** +- **[WebReinvent](https://webreinvent.com/?utm_source=laravel&utm_medium=github&utm_campaign=patreon-sponsors)** +- **[Lendio](https://lendio.com)** + +## Contributing + +Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). + +## Code of Conduct + +In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). + +## Security Vulnerabilities + +If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed. + +## License + +The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). diff --git a/imt/app/Console/Kernel.php b/imt/app/Console/Kernel.php new file mode 100644 index 0000000..d8bc1d2 --- /dev/null +++ b/imt/app/Console/Kernel.php @@ -0,0 +1,32 @@ +command('inspire')->hourly(); + } + + /** + * Register the commands for the application. + * + * @return void + */ + protected function commands() + { + $this->load(__DIR__.'/Commands'); + + require base_path('routes/console.php'); + } +} diff --git a/imt/app/Exceptions/Handler.php b/imt/app/Exceptions/Handler.php new file mode 100644 index 0000000..8e7fbd1 --- /dev/null +++ b/imt/app/Exceptions/Handler.php @@ -0,0 +1,41 @@ +> + */ + protected $dontReport = [ + // + ]; + + /** + * A list of the inputs that are never flashed for validation exceptions. + * + * @var array