├── public ├── favicon.ico ├── robots.txt ├── mix-manifest.json ├── images │ └── screenshots │ │ ├── cart.png │ │ ├── home.png │ │ ├── food_details.png │ │ ├── order_history.png │ │ ├── admin_add_food.png │ │ ├── admin_view_food.png │ │ └── admin_update_food.png ├── .htaccess └── index.php ├── database ├── .gitignore ├── seeders │ ├── FoodTableSeeder.php │ ├── UserTableSeeder.php │ ├── OrderTableSeeder.php │ ├── DatabaseSeeder.php │ └── FoodOrderTableSeeder.php ├── factories │ ├── OrderFactory.php │ ├── FoodFactory.php │ └── UserFactory.php └── migrations │ ├── 2022_04_05_055944_change_picture_column.php │ ├── 2022_04_05_061005_change_food_name_unique.php │ ├── 2022_04_10_060818_add_primary_key_to_food_order.php │ ├── 2022_04_10_175159_change_food_price_to_double.php │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2022_02_27_193758_food.php │ ├── 2022_04_07_194813_change_delivery_address_column_to_nullable_in_order_table.php │ ├── 2022_02_27_202353_order.php │ ├── 2022_02_27_204135_food_order.php │ ├── 2019_08_19_000000_create_failed_jobs_table.php │ ├── 2014_10_12_000000_create_users_table.php │ └── 2019_12_14_000001_create_personal_access_tokens_table.php ├── bootstrap ├── cache │ └── .gitignore └── app.php ├── storage ├── logs │ └── .gitignore ├── app │ ├── public │ │ └── .gitignore │ └── .gitignore └── framework │ ├── testing │ └── .gitignore │ ├── views │ └── .gitignore │ ├── cache │ ├── data │ │ └── .gitignore │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── resources ├── css │ └── app.css ├── sass │ ├── _variables.scss │ └── app.scss ├── views │ ├── layouts │ │ ├── admin.blade.php │ │ └── auth.blade.php │ ├── auth │ │ ├── verify.blade.php │ │ ├── passwords │ │ │ ├── email.blade.php │ │ │ ├── confirm.blade.php │ │ │ └── reset.blade.php │ │ ├── login.blade.php │ │ └── register.blade.php │ ├── components │ │ └── flash_message.blade.php │ ├── food │ │ ├── viewfood.blade.php │ │ ├── show.blade.php │ │ ├── home.blade.php │ │ ├── addfood.blade.php │ │ └── updatefood.blade.php │ ├── editUser.blade.php │ └── order.blade.php ├── lang │ └── en │ │ ├── pagination.php │ │ ├── auth.php │ │ ├── passwords.php │ │ └── validation.php └── js │ ├── components │ └── ExampleComponent.vue │ ├── bootstrap.js │ └── app.js ├── .gitattributes ├── tests ├── TestCase.php ├── Unit │ └── ExampleTest.php ├── Feature │ └── ExampleTest.php └── CreatesApplication.php ├── tailwind.config.js ├── .styleci.yml ├── .gitignore ├── .editorconfig ├── app ├── Http │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── VerifyCsrfToken.php │ │ ├── PreventRequestsDuringMaintenance.php │ │ ├── TrustHosts.php │ │ ├── TrimStrings.php │ │ ├── Authenticate.php │ │ ├── TrustProxies.php │ │ ├── checkAdmin.php │ │ └── RedirectIfAuthenticated.php │ ├── Controllers │ │ ├── Controller.php │ │ ├── HomeController.php │ │ ├── Auth │ │ │ ├── ForgotPasswordController.php │ │ │ ├── ResetPasswordController.php │ │ │ ├── ConfirmPasswordController.php │ │ │ ├── VerificationController.php │ │ │ ├── LoginController.php │ │ │ └── RegisterController.php │ │ ├── UserController.php │ │ ├── FoodController.php │ │ └── OrderController.php │ └── Kernel.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── AppServiceProvider.php │ ├── EventServiceProvider.php │ ├── AuthServiceProvider.php │ └── RouteServiceProvider.php ├── View │ └── Components │ │ └── Footer.php ├── Exceptions │ └── Handler.php ├── Console │ └── Kernel.php ├── Models │ ├── Food.php │ ├── Order.php │ └── User.php └── Policies │ └── FoodPolicy.php ├── routes ├── channels.php ├── console.php ├── api.php └── web.php ├── server.php ├── webpack.mix.js ├── package.json ├── config ├── cors.php ├── services.php ├── view.php ├── hashing.php ├── broadcasting.php ├── sanctum.php ├── filesystems.php ├── queue.php ├── cache.php ├── logging.php ├── mail.php ├── auth.php ├── database.php ├── session.php └── app.php ├── phpunit.xml ├── artisan ├── composer.json └── README.md /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite* 2 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /resources/css/app.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; -------------------------------------------------------------------------------- /public/mix-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "/js/app.js": "/js/app.js", 3 | "/css/app.css": "/css/app.css" 4 | } 5 | -------------------------------------------------------------------------------- /public/images/screenshots/cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonchn18/laravel-food-ordering-web-app/HEAD/public/images/screenshots/cart.png -------------------------------------------------------------------------------- /public/images/screenshots/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonchn18/laravel-food-ordering-web-app/HEAD/public/images/screenshots/home.png -------------------------------------------------------------------------------- /public/images/screenshots/food_details.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonchn18/laravel-food-ordering-web-app/HEAD/public/images/screenshots/food_details.png -------------------------------------------------------------------------------- /public/images/screenshots/order_history.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonchn18/laravel-food-ordering-web-app/HEAD/public/images/screenshots/order_history.png -------------------------------------------------------------------------------- /public/images/screenshots/admin_add_food.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonchn18/laravel-food-ordering-web-app/HEAD/public/images/screenshots/admin_add_food.png -------------------------------------------------------------------------------- /public/images/screenshots/admin_view_food.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonchn18/laravel-food-ordering-web-app/HEAD/public/images/screenshots/admin_view_food.png -------------------------------------------------------------------------------- /public/images/screenshots/admin_update_food.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonchn18/laravel-food-ordering-web-app/HEAD/public/images/screenshots/admin_update_food.png -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | compiled.php 2 | config.php 3 | down 4 | events.scanned.php 5 | maintenance.php 6 | routes.php 7 | routes.scanned.php 8 | schedule-* 9 | services.json 10 | -------------------------------------------------------------------------------- /resources/sass/_variables.scss: -------------------------------------------------------------------------------- 1 | // Body 2 | $body-bg: #f8fafc; 3 | 4 | // Typography 5 | $font-family-sans-serif: 'Nunito', sans-serif; 6 | $font-size-base: 0.9rem; 7 | $line-height-base: 1.6; 8 | -------------------------------------------------------------------------------- /resources/sass/app.scss: -------------------------------------------------------------------------------- 1 | // Fonts 2 | @import url('https://fonts.googleapis.com/css?family=Nunito'); 3 | 4 | // Variables 5 | @import 'variables'; 6 | 7 | // Bootstrap 8 | @import '~bootstrap/scss/bootstrap'; 9 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | 3 | *.blade.php diff=html 4 | *.css diff=css 5 | *.html diff=html 6 | *.md diff=markdown 7 | *.php diff=php 8 | 9 | /.github export-ignore 10 | CHANGELOG.md export-ignore 11 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /database/seeders/FoodTableSeeder.php: -------------------------------------------------------------------------------- 1 | create(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /database/seeders/UserTableSeeder.php: -------------------------------------------------------------------------------- 1 | create(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /database/seeders/OrderTableSeeder.php: -------------------------------------------------------------------------------- 1 | create(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | get('/'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Http/Middleware/PreventRequestsDuringMaintenance.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustHosts.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | public function hosts() 15 | { 16 | return [ 17 | $this->allSubdomainsOfApplicationUrl(), 18 | ]; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrimStrings.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | 'current_password', 16 | 'password', 17 | 'password_confirmation', 18 | ]; 19 | } 20 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 19 | 20 | return $app; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | call([ 17 | UserTableSeeder::class, 18 | FoodTableSeeder::class, 19 | OrderTableSeeder::class, 20 | FoodOrderTableSeeder::class, 21 | ]); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /resources/views/layouts/admin.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.auth') 2 | @section('content') 3 |
| ID | 14 |Name | 15 |Description | 16 |Price | 17 |Type | 18 |Picture | 19 |||
|---|---|---|---|---|---|---|---|
| {{$food['id']}} | 25 |{{$food['name']}} | 26 |{{$food['description']}} | 27 |{{$food['price']}} | 28 |{{$food['type']}} | 29 |{{$food['picture']}} | 30 |31 | @can('update', $food) 32 | 36 | @endcan 37 | | 38 |39 | @can('delete', $food) 40 | 45 | @endcan 46 | | 47 |
1
20 | 21 |