├── .editorconfig ├── .env.example ├── .gitattributes ├── .gitignore ├── README.md ├── _theme_files ├── create-job.html ├── css │ └── style.css ├── dashboard.html ├── error.html ├── images │ ├── default-avatar.png │ ├── hero.jpg │ └── logos │ │ ├── logo-algorix.png │ │ ├── logo-bitwave.png │ │ ├── logo-digital-media.png │ │ ├── logo-nextgen.png │ │ ├── logo-pink-pig.png │ │ ├── logo-quantumcode.png │ │ ├── logo-shield.png │ │ ├── logo-sparkle.png │ │ ├── logo-tec-solutions.png │ │ ├── logo-vencom.png │ │ └── logos.psd ├── index.html ├── job-details.html ├── job_listings.php ├── jobs.html ├── js │ └── script.js ├── login.html ├── register.html └── saved-jobs.html ├── app ├── Http │ ├── Controllers │ │ ├── ApplicantController.php │ │ ├── BookmarkController.php │ │ ├── Controller.php │ │ ├── DashboardController.php │ │ ├── GeocodeController.php │ │ ├── HomeController.php │ │ ├── JobController.php │ │ ├── LoginController.php │ │ ├── ProfileController.php │ │ └── RegisterController.php │ └── Middleware │ │ └── LogRequest.php ├── Mail │ └── JobApplied.php ├── Models │ ├── Applicant.php │ ├── Job.php │ └── User.php ├── Policies │ └── JobPolicy.php ├── Providers │ ├── AppServiceProvider.php │ └── AuthServiceProvider.php └── View │ └── Components │ ├── Alert.php │ ├── BottomBanner.php │ ├── ButtonLink.php │ ├── File.php │ ├── Header.php │ ├── Hero.php │ ├── JobCard.php │ ├── Layout.php │ ├── LogoutButton.php │ ├── NavLink.php │ ├── Search.php │ ├── Select.php │ ├── Text.php │ ├── TextArea.php │ └── TopBanner.php ├── artisan ├── bootstrap ├── app.php ├── cache │ └── .gitignore └── providers.php ├── composer.json ├── composer.lock ├── config ├── app.php ├── auth.php ├── cache.php ├── database.php ├── filesystems.php ├── logging.php ├── mail.php ├── queue.php ├── services.php └── session.php ├── database ├── .gitignore ├── factories │ ├── JobFactory.php │ └── UserFactory.php ├── migrations │ ├── 0001_01_01_000000_create_users_table.php │ ├── 0001_01_01_000001_create_cache_table.php │ ├── 0001_01_01_000002_create_jobs_table.php │ ├── 2024_09_11_172954_create_job_listings_table.php │ ├── 2024_09_12_120240_add_fields_to_job_listings_table.php │ ├── 2024_09_16_134742_add_avatar_to_users_table.php │ ├── 2024_09_16_180928_create_job_user_bookmarks_table.php │ └── 2024_09_17_130558_create_applicants_table.php └── seeders │ ├── BookmarkSeeder.php │ ├── DatabaseSeeder.php │ ├── JobSeeder.php │ ├── RandomJobSeeder.php │ ├── RandomUserSeeder.php │ ├── TestUserSeeder.php │ └── data │ └── job_listings.php ├── package-lock.json ├── package.json ├── phpunit.xml ├── postcss.config.js ├── public ├── .DS_Store ├── .htaccess ├── css │ └── style.css ├── favicon.ico ├── images │ ├── hero.jpg │ ├── logos │ │ ├── logo-algorix.png │ │ ├── logo-bitwave.png │ │ ├── logo-digital-media.png │ │ ├── logo-nextgen.png │ │ ├── logo-pink-pig.png │ │ ├── logo-quantumcode.png │ │ ├── logo-shield.png │ │ ├── logo-sparkle.png │ │ ├── logo-tec-solutions.png │ │ ├── logo-vencom.png │ │ └── logos.psd │ └── screen.png ├── index.php ├── js │ └── script.js └── robots.txt ├── resources ├── css │ └── app.css ├── js │ ├── app.js │ └── bootstrap.js └── views │ ├── auth │ ├── login.blade.php │ └── register.blade.php │ ├── components │ ├── alert.blade.php │ ├── bottom-banner.blade.php │ ├── button-link.blade.php │ ├── header.blade.php │ ├── hero.blade.php │ ├── inputs │ │ ├── file.blade.php │ │ ├── select.blade.php │ │ ├── text-area.blade.php │ │ └── text.blade.php │ ├── job-card.blade.php │ ├── logout-button.blade.php │ ├── nav-link.blade.php │ ├── search.blade.php │ └── top-banner.blade.php │ ├── dashboard │ └── index.blade.php │ ├── emails │ └── job-applied.blade.php │ ├── jobs │ ├── bookmarked.blade.php │ ├── create.blade.php │ ├── edit.blade.php │ ├── index.blade.php │ └── show.blade.php │ ├── layout.blade.php │ ├── pages │ └── index.blade.php │ └── vendor │ └── pagination │ ├── bootstrap-4.blade.php │ ├── bootstrap-5.blade.php │ ├── default.blade.php │ ├── semantic-ui.blade.php │ ├── simple-bootstrap-4.blade.php │ ├── simple-bootstrap-5.blade.php │ ├── simple-default.blade.php │ ├── simple-tailwind.blade.php │ └── tailwind.blade.php ├── routes ├── console.php └── web.php ├── storage ├── app │ ├── .gitignore │ └── public │ │ ├── .gitignore │ │ ├── avatars │ │ ├── OkN9SVc5zdTsaWcaG0bM312gkHEePc0PtGPK4op0.jpg │ │ ├── WiOWwM95W5lsaPhv5UhYCLfXy2c6PDIGZuvqQStG.jpg │ │ ├── default-avatar.png │ │ └── eddYUMjw0De9RCrpH9YU003BVUpzqEtJievGakrU.jpg │ │ ├── logos │ │ ├── 8RcUlkmxJjXinPTfCzezE8mrAANdh33ErUflxD9K.png │ │ ├── BKFdIXoacajQhfk1NHDGCoNnyBzSXzW38JPXLg42.png │ │ ├── LCYGNDi5dUBrUTlfPZGj3csmjMwIqbfN0hpygJuR.png │ │ ├── logo-algorix.png │ │ ├── logo-bitwave.png │ │ ├── logo-digital-media.png │ │ ├── logo-nextgen.png │ │ ├── logo-pink-pig.png │ │ ├── logo-quantumcode.png │ │ ├── logo-shield.png │ │ ├── logo-sparkle.png │ │ ├── logo-tec-solutions.png │ │ ├── logo-vencom.png │ │ └── n2L0rnB51Iw4Vvp8WYBLi22aAQvkPFHgEgWuqTSs.png │ │ └── resumes │ │ ├── 3TzIiBR3PDnGY0VhgAq5ZXbCQwb6q0euB25xOyDd.pdf │ │ ├── 7F5vcwmHDo41Z9p0iOIxnn0nDAnfSM0iykeB20e3.pdf │ │ ├── 93K9WFLAJ0j2UQNbYpUtyejtWzSD3ya3JjRJhecv.pdf │ │ ├── LrtoqgDdoCgDk4mYmr6GapzARP5CfLqj9fZjkdi4.pdf │ │ ├── XDJimgtfgUthXrdhD5IVH1ZwxkOVHqSFb71evoOA.pdf │ │ ├── XxwMerVnDlLZkbnmAmj6XRMH4pKwlKyWswMKBkB8.pdf │ │ ├── lGHyE9rmwUBwYcBvvOKMojtW4eOQZ8264aGDTkCk.pdf │ │ ├── n42l6ugZp92OZcSIv9D8n9XkXcEhoF82LhN9zOXW.pdf │ │ ├── nyY91fwL9WqQsIBo3CsuF5fTEkouGAMCpjLxMl44.pdf │ │ └── vfJTz2m86HsmEVuAtkE3LL3SFkmgW3GsuHuxJbn3.pdf ├── framework │ ├── .gitignore │ ├── cache │ │ ├── .gitignore │ │ └── data │ │ │ └── .gitignore │ ├── sessions │ │ └── .gitignore │ ├── testing │ │ └── .gitignore │ └── views │ │ └── .gitignore └── logs │ └── .gitignore ├── tailwind.config.js ├── tests ├── Feature │ └── ExampleTest.php ├── TestCase.php └── Unit │ └── ExampleTest.php └── vite.config.js /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | indent_size = 4 7 | indent_style = space 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | 14 | [*.{yml,yaml}] 15 | indent_size = 2 16 | 17 | [docker-compose.yml] 18 | indent_size = 4 19 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=Workopia 2 | APP_ENV=local 3 | APP_KEY=base64:g/j1T3xaJXTeYjPJJ5D5qWQr/YlCvL9Sl3TOmgXauVo= 4 | APP_DEBUG=true 5 | APP_TIMEZONE=UTC 6 | APP_URL=http://workopia.test 7 | 8 | APP_LOCALE=en 9 | APP_FALLBACK_LOCALE=en 10 | APP_FAKER_LOCALE=en_US 11 | 12 | APP_MAINTENANCE_DRIVER=file 13 | # APP_MAINTENANCE_STORE=database 14 | 15 | BCRYPT_ROUNDS=12 16 | 17 | LOG_CHANNEL=stack 18 | LOG_STACK=single 19 | LOG_DEPRECATIONS_CHANNEL=null 20 | LOG_LEVEL=debug 21 | 22 | DB_CONNECTION=pgsql 23 | DB_HOST=127.0.0.1 24 | DB_PORT=5432 25 | DB_DATABASE=YOUR_DATABASE_NAME 26 | DB_USERNAME=YOUR_DATABASE_USERNAME 27 | DB_PASSWORD=YOUR_DATABASE_PASSWORD 28 | 29 | SESSION_DRIVER=database 30 | SESSION_LIFETIME=120 31 | SESSION_ENCRYPT=false 32 | SESSION_PATH=/ 33 | SESSION_DOMAIN=null 34 | 35 | BROADCAST_CONNECTION=log 36 | FILESYSTEM_DISK=local 37 | QUEUE_CONNECTION=database 38 | 39 | CACHE_STORE=database 40 | CACHE_PREFIX= 41 | 42 | MEMCACHED_HOST=127.0.0.1 43 | 44 | REDIS_CLIENT=phpredis 45 | REDIS_HOST=127.0.0.1 46 | REDIS_PASSWORD=null 47 | REDIS_PORT=6379 48 | 49 | MAIL_MAILER=smtp 50 | # MAIL_HOST=sandbox.smtp.mailtrap.io 51 | # MAIL_PORT=2525 52 | # MAIL_USERNAME=YOUR_USERNAME 53 | # MAIL_PASSWORD=YOUR_PASSWORD 54 | MAIL_HOST=live.smtp.mailtrap.io 55 | MAIL_PORT=587 56 | MAIL_USERNAME=api 57 | MAIL_PASSWORD=YOUR_PASSWORD 58 | MAIL_ENCRYPTION=null 59 | MAIL_FROM_ADDRESS="noreply@yourdomain.com" 60 | MAIL_FROM_NAME="${APP_NAME}" 61 | 62 | AWS_ACCESS_KEY_ID= 63 | AWS_SECRET_ACCESS_KEY= 64 | AWS_DEFAULT_REGION=us-east-1 65 | AWS_BUCKET= 66 | AWS_USE_PATH_STYLE_ENDPOINT=false 67 | 68 | VITE_APP_NAME="${APP_NAME}" 69 | MAPBOX_API_KEY=YOUR_API_KEY 70 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 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 | .styleci.yml export-ignore 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.phpunit.cache 2 | /node_modules 3 | /public/build 4 | /public/hot 5 | /public/storage 6 | /storage/*.key 7 | /vendor 8 | .env 9 | .env.backup 10 | .env.production 11 | .phpactor.json 12 | .phpunit.result.cache 13 | Homestead.json 14 | Homestead.yaml 15 | auth.json 16 | npm-debug.log 17 | yarn-error.log 18 | /.fleet 19 | /.idea 20 | /.vscode 21 | /.DS_Store -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Workopia (Laravel) 2 | 3 | Workopia is a job listing website built with Laravel 11. This is the main project from my Laravel From Scratch course. 4 | 5 | Course Link - https://www.traversymedia.com/laravel-from-scratch 6 | 7 | 8 | 9 | ## Features 10 | 11 | - Job Listing CRUD 12 | - Authentication & Authorization Policies 13 | - Profile Avatar Upload 14 | - Blade UI Components 15 | - Vite & Tailwind Integration 16 | - Bookmarking System 17 | - Apply & Upload Resume 18 | - User Dashboard 19 | - Alpine.js For Interactivity 20 | - Database Seeder 21 | - Job Search 22 | - Mapbox Maps 23 | - Mailers With Mailtrap 24 | - Job Listing Pagination 25 | 26 | ## Usage 27 | 28 | #### Install composer dependencies 29 | 30 | ``` 31 | composer install 32 | ``` 33 | 34 | #### Install NPM dependencies and build assets 35 | 36 | ``` 37 | npm install 38 | npm run build 39 | ``` 40 | 41 | #### Add .env Variables 42 | 43 | Rename the `.env.example` file to `.env` and add your database values. Change driver and port as needed. 44 | 45 | ``` 46 | DB_CONNECTION=pgsql 47 | DB_HOST=127.0.0.1 48 | DB_PORT=5432 49 | DB_DATABASE= 50 | DB_USERNAME= 51 | DB_PASSWORD= 52 | ``` 53 | 54 | Add your mabox API key: 55 | 56 | ``` 57 | MAPBOX_API_KEY= 58 | ``` 59 | 60 | #### Run Migrations 61 | 62 | ``` 63 | php artisan migrate 64 | ``` 65 | 66 | #### Seed Database (Optional) 67 | 68 | You can seed the database with users, jobs and bookmarks 69 | 70 | ``` 71 | php artisan db:seed 72 | ``` 73 | 74 | You will have a test user available with the following credentials: 75 | 76 | - Email: test@test.com 77 | - Password: 12345678 78 | 79 | #### Run Server 80 | 81 | If you are using artisan to serve, run the following: 82 | 83 | ``` 84 | php artisan serve 85 | ``` 86 | 87 | Open http://localhost:8000 88 | 89 | ## License 90 | 91 | Workopia has an open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). 92 | -------------------------------------------------------------------------------- /_theme_files/css/style.css: -------------------------------------------------------------------------------- 1 | .overlay { 2 | position: absolute; 3 | top: 0; 4 | left: 0; 5 | width: 100%; 6 | height: 100%; 7 | background-color: rgba(0, 0, 0, 0.8); /* Adjust opacity as needed */ 8 | z-index: 1; 9 | } 10 | 11 | .hero { 12 | background-image: url("../images/hero.jpg"); 13 | } 14 | -------------------------------------------------------------------------------- /_theme_files/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 14 | 15 | 16 | Workopia 17 | 18 | 19 | 20 |
21 |
22 |

23 | Workopia 24 |

25 | 55 | 61 |
62 | 63 | 96 |
97 | 98 | 99 |
100 |
101 |

102 | Unlock Your Career Potential 103 |

104 |

105 | Discover the perfect job opportunity for you. 106 |

107 |
108 |
109 | 110 |
111 |
112 |
115 | 404 Error 116 |
117 |

118 | This page does not exist 119 |

120 |
121 |
122 | 123 | 124 | 125 | 126 | -------------------------------------------------------------------------------- /_theme_files/images/default-avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/_theme_files/images/default-avatar.png -------------------------------------------------------------------------------- /_theme_files/images/hero.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/_theme_files/images/hero.jpg -------------------------------------------------------------------------------- /_theme_files/images/logos/logo-algorix.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/_theme_files/images/logos/logo-algorix.png -------------------------------------------------------------------------------- /_theme_files/images/logos/logo-bitwave.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/_theme_files/images/logos/logo-bitwave.png -------------------------------------------------------------------------------- /_theme_files/images/logos/logo-digital-media.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/_theme_files/images/logos/logo-digital-media.png -------------------------------------------------------------------------------- /_theme_files/images/logos/logo-nextgen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/_theme_files/images/logos/logo-nextgen.png -------------------------------------------------------------------------------- /_theme_files/images/logos/logo-pink-pig.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/_theme_files/images/logos/logo-pink-pig.png -------------------------------------------------------------------------------- /_theme_files/images/logos/logo-quantumcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/_theme_files/images/logos/logo-quantumcode.png -------------------------------------------------------------------------------- /_theme_files/images/logos/logo-shield.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/_theme_files/images/logos/logo-shield.png -------------------------------------------------------------------------------- /_theme_files/images/logos/logo-sparkle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/_theme_files/images/logos/logo-sparkle.png -------------------------------------------------------------------------------- /_theme_files/images/logos/logo-tec-solutions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/_theme_files/images/logos/logo-tec-solutions.png -------------------------------------------------------------------------------- /_theme_files/images/logos/logo-vencom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/_theme_files/images/logos/logo-vencom.png -------------------------------------------------------------------------------- /_theme_files/images/logos/logos.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/_theme_files/images/logos/logos.psd -------------------------------------------------------------------------------- /_theme_files/js/script.js: -------------------------------------------------------------------------------- 1 | document.querySelector('#hamburger').addEventListener('click', function () { 2 | const menu = document.getElementById('mobile-menu'); 3 | menu.classList.toggle('hidden'); 4 | }); 5 | -------------------------------------------------------------------------------- /_theme_files/login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 14 | 15 | 16 | Workopia 17 | 18 | 19 | 20 |
21 |
22 |

23 | Workopia 24 |

25 | 57 | 63 |
64 | 65 | 99 |
100 | 101 | 102 |
103 |
106 |

Login

107 |
108 |
109 | 115 |
116 |
117 | 123 |
124 | 130 | 131 |

132 | Don't have an account? 133 | Register 136 |

137 |
138 |
139 |
140 | 141 | 142 | 143 | 144 | -------------------------------------------------------------------------------- /_theme_files/register.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 14 | 15 | 16 | Workopia 17 | 18 | 19 | 20 |
21 |
22 |

23 | Workopia 24 |

25 | 55 | 61 |
62 | 63 | 97 |
98 | 99 | 100 |
101 |
104 |

Register

105 |
106 |
107 | 113 |
114 |
115 | 121 |
122 |
123 | 129 |
130 |
131 | 137 |
138 | 144 | 145 |

146 | Already have an account? 147 | Login 148 |

149 |
150 |
151 |
152 | 153 | 154 | 155 | 156 | -------------------------------------------------------------------------------- /app/Http/Controllers/ApplicantController.php: -------------------------------------------------------------------------------- 1 | id) 20 | ->where('user_id', auth()->id()) 21 | ->exists(); 22 | 23 | if ($existingApplication) { 24 | return redirect()->back()->with('error', 'You have already applied to this job'); 25 | } 26 | 27 | // Validate incoming data 28 | $validatedData = $request->validate([ 29 | 'full_name' => 'required|string', 30 | 'contact_phone' => 'string', 31 | 'contact_email' => 'required|string|email', 32 | 'message' => 'string', 33 | 'location' => 'string', 34 | 'resume' => 'required|file|mimes:pdf|max:2048', 35 | ]); 36 | 37 | // Handle resume uplaod 38 | if ($request->hasFile('resume')) { 39 | $path = $request->file('resume')->store('resumes', 'public'); 40 | $validatedData['resume_path'] = $path; 41 | } 42 | 43 | // Store the application 44 | $application = new Applicant($validatedData); 45 | $application->job_id = $job->id; 46 | $application->user_id = auth()->id(); 47 | $application->save(); 48 | 49 | // Send email to owner (Uncomment after mailtrap compliance form is submitted) 50 | // Mail::to($job->user->email)->send(new JobApplied($application, $job)); 51 | 52 | return redirect()->back()->with('success', 'Your application has been submitted'); 53 | } 54 | 55 | // @desc Delete job applicant 56 | // @route DELETE /applicants/{applicant} 57 | public function destroy($id): RedirectResponse 58 | { 59 | $applicant = Applicant::findOrFail($id); 60 | $applicant->delete(); 61 | return redirect()->route('dashboard')->with('success', 'Applicant deleted successfully!'); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /app/Http/Controllers/BookmarkController.php: -------------------------------------------------------------------------------- 1 | bookmarkedJobs()->orderBy('job_user_bookmarks.created_at', 'desc')->paginate(9); 20 | return view('jobs.bookmarked')->with('bookmarks', $bookmarks); 21 | } 22 | 23 | // @desc Create new bookmarked job 24 | // @route POST /bookmarks/{job} 25 | public function store(Job $job): RedirectResponse 26 | { 27 | $user = Auth::user(); 28 | 29 | // Check if the job is already bookmarked 30 | if ($user->bookmarkedJobs()->where('job_id', $job->id)->exists()) { 31 | return back()->with('error', 'Job is already bookmarked'); 32 | } 33 | 34 | // Create new bookmark 35 | $user->bookmarkedJobs()->attach($job->id); 36 | 37 | return back()->with('success', 'Job bookmarked successfully!'); 38 | } 39 | 40 | // @desc Remove bookmarked job 41 | // @route DELETE /bookmarks/{job} 42 | public function destroy(Job $job): RedirectResponse 43 | { 44 | $user = Auth::user(); 45 | 46 | // Check if the job is not bookmarked 47 | if (!$user->bookmarkedJobs()->where('job_id', $job->id)->exists()) { 48 | return back()->with('error', 'Job is not bookmarked'); 49 | } 50 | 51 | // Remove bookmark 52 | $user->bookmarkedJobs()->detach($job->id); 53 | 54 | return back()->with('success', 'Bookmark removed successfully!'); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | id)->with('applicants')->get(); 21 | 22 | return view('dashboard.index', compact('user', 'jobs')); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /app/Http/Controllers/GeocodeController.php: -------------------------------------------------------------------------------- 1 | input('address'); 15 | $accessToken = env('MAPBOX_API_KEY'); 16 | 17 | $response = Http::get("https://api.mapbox.com/geocoding/v5/mapbox.places/{$address}.json", [ 18 | 'access_token' => $accessToken 19 | ]); 20 | 21 | return $response->json(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /app/Http/Controllers/HomeController.php: -------------------------------------------------------------------------------- 1 | limit(6)->get(); 16 | 17 | return view('pages.index')->with('jobs', $jobs); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/Http/Controllers/JobController.php: -------------------------------------------------------------------------------- 1 | paginate(9); 21 | return view('jobs.index')->with('jobs', $jobs); 22 | } 23 | 24 | // @desc Show create job form 25 | // @route GET /jobs/create 26 | public function create() 27 | { 28 | return view('jobs.create'); 29 | } 30 | 31 | // @desc Save job to database 32 | // @route POST /jobs 33 | public function store(Request $request): RedirectResponse 34 | { 35 | $validatedData = $request->validate([ 36 | 'title' => 'required|string|max:255', 37 | 'description' => 'required|string', 38 | 'salary' => 'required|integer', 39 | 'tags' => 'nullable|string', 40 | 'job_type' => 'required|string', 41 | 'remote' => 'required|boolean', 42 | 'requirements' => 'nullable|string', 43 | 'benefits' => 'nullable|string', 44 | 'address' => 'nullable|string', 45 | 'city' => 'required|string', 46 | 'state' => 'required|string', 47 | 'zipcode' => 'nullable|string', 48 | 'contact_email' => 'required|string', 49 | 'contact_phone' => 'nullable|string', 50 | 'company_name' => 'required|string', 51 | 'company_description' => 'nullable|string', 52 | 'company_logo' => 'nullable|image|mimes:jpeg,jpg,png,gif|max:2048', 53 | 'company_website' => 'nullable|url' 54 | ]); 55 | 56 | // Hardcoded user ID 57 | $validatedData['user_id'] = auth()->user()->id; 58 | 59 | // Check for image 60 | if ($request->hasFile('company_logo')) { 61 | // Store the file and get path 62 | $path = $request->file('company_logo')->store('logos', 'public'); 63 | 64 | // Add path to validated data 65 | $validatedData['company_logo'] = $path; 66 | } 67 | 68 | // Submit to database 69 | Job::create($validatedData); 70 | 71 | return redirect()->route('jobs.index')->with('success', 'Job listing created successfully!'); 72 | } 73 | 74 | // @desc Display a single job listing 75 | // @route GET /jobs/{$id} 76 | public function show(Job $job): View 77 | { 78 | return view('jobs.show')->with('job', $job); 79 | } 80 | 81 | // @desc Show edit job form 82 | // @route GET /jobs/{$id}/edit 83 | public function edit(Job $job): View 84 | { 85 | // Check if user is authorized 86 | $this->authorize('update', $job); 87 | 88 | return view('jobs.edit')->with('job', $job); 89 | } 90 | 91 | // @desc Update job listing 92 | // @route PUT /jobs/{$id} 93 | public function update(Request $request, Job $job): string 94 | { 95 | // Check if user is authorized 96 | $this->authorize('update', $job); 97 | 98 | $validatedData = $request->validate([ 99 | 'title' => 'required|string|max:255', 100 | 'description' => 'required|string', 101 | 'salary' => 'required|integer', 102 | 'tags' => 'nullable|string', 103 | 'job_type' => 'required|string', 104 | 'remote' => 'required|boolean', 105 | 'requirements' => 'nullable|string', 106 | 'benefits' => 'nullable|string', 107 | 'address' => 'nullable|string', 108 | 'city' => 'required|string', 109 | 'state' => 'required|string', 110 | 'zipcode' => 'nullable|string', 111 | 'contact_email' => 'required|string', 112 | 'contact_phone' => 'nullable|string', 113 | 'company_name' => 'required|string', 114 | 'company_description' => 'nullable|string', 115 | 'company_logo' => 'nullable|image|mimes:jpeg,jpg,png,gif|max:2048', 116 | 'company_website' => 'nullable|url' 117 | ]); 118 | 119 | // Check for image 120 | if ($request->hasFile('company_logo')) { 121 | // Delete old logo 122 | Storage::delete('public/logos/' . basename($job->company_logo)); 123 | 124 | // Store the file and get path 125 | $path = $request->file('company_logo')->store('logos', 'public'); 126 | 127 | // Add path to validated data 128 | $validatedData['company_logo'] = $path; 129 | } 130 | 131 | // Submit to database 132 | $job->update($validatedData); 133 | 134 | return redirect()->route('jobs.index')->with('success', 'Job listing updated successfully!'); 135 | } 136 | 137 | // @desc Delete a job listing 138 | // @route DELETE /jobs/{$id} 139 | public function destroy(Job $job): RedirectResponse 140 | { 141 | // Check if user is authorized 142 | $this->authorize('delete', $job); 143 | 144 | // If logo, then delete it 145 | if ($job->company_logo) { 146 | Storage::delete('public/logos/' . $job->company_logo); 147 | } 148 | 149 | $job->delete(); 150 | 151 | // Check if request came from the dashboard 152 | if (request()->query('from') == 'dashboard') { 153 | return redirect()->route('dashboard')->with('success', 'Job listing deleted successfully!'); 154 | } 155 | 156 | return redirect()->route('jobs.index')->with('success', 'Job listing deleted successfully!'); 157 | } 158 | 159 | // @desc Search job listings 160 | // @route GET /jobs/search 161 | public function search(Request $request): View 162 | { 163 | $keywords = strtolower($request->input('keywords')); 164 | $location = strtolower($request->input('location')); 165 | 166 | $query = Job::query(); 167 | 168 | if ($keywords) { 169 | $query->where(function ($q) use ($keywords) { 170 | $q->whereRaw('LOWER(title) like ?', ['%' . $keywords . '%']) 171 | ->orWhereRaw('LOWER(description) like ?', ['%' . $keywords . '%']) 172 | ->orWhereRaw('LOWER(tags) like ?', ['%' . $keywords . '%']); 173 | }); 174 | } 175 | 176 | if ($location) { 177 | $query->where(function ($q) use ($location) { 178 | $q->whereRaw('LOWER(address) like ?', ['%' . $location . '%']) 179 | ->orWhereRaw('LOWER(city) like ?', ['%' . $location . '%']) 180 | ->orWhereRaw('LOWER(state) like ?', ['%' . $location . '%']) 181 | ->orWhereRaw('LOWER(zipcode) like ?', ['%' . $location . '%']); 182 | }); 183 | } 184 | 185 | $jobs = $query->paginate(12); 186 | 187 | return view('jobs.index')->with('jobs', $jobs); 188 | } 189 | } 190 | -------------------------------------------------------------------------------- /app/Http/Controllers/LoginController.php: -------------------------------------------------------------------------------- 1 | validate([ 24 | 'email' => 'required|string|email|max:100', 25 | 'password' => 'required|string', 26 | ]); 27 | 28 | // Attempt to authenticate user 29 | if (Auth::attempt($credentials)) { 30 | // Regenerate the session to prevent fixation attacks 31 | $request->session()->regenerate(); 32 | 33 | return redirect()->intended(route('home'))->with('success', 'You are now logged in!'); 34 | } 35 | 36 | // If auth fails, redirect back with error 37 | return back()->withErrors([ 38 | 'email' => 'The provided credentials do not match our records' 39 | ])->onlyInput('email'); 40 | } 41 | 42 | // @desc Logout user 43 | // @route POST /logout 44 | public function logout(Request $request): RedirectResponse 45 | { 46 | Auth::logout(); 47 | 48 | $request->session()->invalidate(); 49 | $request->session()->regenerateToken(); 50 | 51 | return redirect('/'); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /app/Http/Controllers/ProfileController.php: -------------------------------------------------------------------------------- 1 | validate([ 21 | 'name' => 'required|string', 22 | 'email' => 'required|string|email', 23 | 'avatar' => 'nullable|image|mimes:jpeg,jpg,png,gif|max:2048' 24 | ]); 25 | 26 | // Get user name and email 27 | $user->name = $request->input('name'); 28 | $user->email = $request->input('email'); 29 | 30 | // Handle avatar upload 31 | if ($request->hasFile('avatar')) { 32 | // Delete old avatar if exists 33 | if ($user->avatar) { 34 | Storage::delete('public/' . $user->avatar); 35 | } 36 | 37 | // Store new avatar 38 | $avatarPath = $request->file('avatar')->store('avatars', 'public'); 39 | $user->avatar = $avatarPath; 40 | } 41 | 42 | // Update user info 43 | $user->save(); 44 | 45 | return redirect()->route('dashboard')->with('success', 'Profile info updated!'); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /app/Http/Controllers/RegisterController.php: -------------------------------------------------------------------------------- 1 | validate([ 25 | 'name' => 'required|string|max:100', 26 | 'email' => 'required|string|email|max:100|unique:users', 27 | 'password' => 'required|string|min:8|confirmed', 28 | ]); 29 | 30 | // Hash password 31 | $validatedData['password'] = Hash::make($validatedData['password']); 32 | 33 | // Create user 34 | $user = User::create($validatedData); 35 | 36 | return redirect()->route('login')->with('success', 'You are registered and can log in!'); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /app/Http/Middleware/LogRequest.php: -------------------------------------------------------------------------------- 1 | method()} - {$request->fullUrl()}"); 20 | return $next($request); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/Mail/JobApplied.php: -------------------------------------------------------------------------------- 1 | application = $application; 26 | $this->job = $job; 27 | } 28 | 29 | /** 30 | * Get the message envelope. 31 | */ 32 | public function envelope(): Envelope 33 | { 34 | return new Envelope( 35 | subject: 'New Job Application', 36 | ); 37 | } 38 | 39 | /** 40 | * Get the message content definition. 41 | */ 42 | public function content(): Content 43 | { 44 | return new Content( 45 | view: 'emails.job-applied', 46 | ); 47 | } 48 | 49 | /** 50 | * Get the attachments for the message. 51 | * 52 | * @return array 53 | */ 54 | public function attachments(): array 55 | { 56 | $attachments = []; 57 | if ($this->application->resume_path) { 58 | $attachments[] = Attachment::fromPath(storage_path('app/public/' . $this->application->resume_path)) 59 | ->as($this->application->resume_path) 60 | ->withMime('application/pdf'); 61 | } 62 | 63 | return $attachments; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /app/Models/Applicant.php: -------------------------------------------------------------------------------- 1 | belongsTo(Job::class); 28 | } 29 | 30 | // Relation to user 31 | public function user(): BelongsTo 32 | { 33 | return $this->belongsTo(User::class); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/Models/Job.php: -------------------------------------------------------------------------------- 1 | belongsTo(User::class); 43 | } 44 | 45 | // Relation to bookmarks 46 | public function bookmarkedByUsers(): BelongsToMany 47 | { 48 | return $this->belongsToMany(User::class, 'job_user_bookmarks')->withTimestamps(); 49 | } 50 | 51 | // Relation to applicants 52 | public function applicants(): HasMany 53 | { 54 | return $this->hasMany(Applicant::class); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /app/Models/User.php: -------------------------------------------------------------------------------- 1 | 20 | */ 21 | protected $fillable = [ 22 | 'name', 23 | 'email', 24 | 'password', 25 | 'avatar' 26 | ]; 27 | 28 | /** 29 | * The attributes that should be hidden for serialization. 30 | * 31 | * @var array 32 | */ 33 | protected $hidden = [ 34 | 'password', 35 | 'remember_token', 36 | ]; 37 | 38 | /** 39 | * Get the attributes that should be cast. 40 | * 41 | * @return array 42 | */ 43 | protected function casts(): array 44 | { 45 | return [ 46 | 'email_verified_at' => 'datetime', 47 | 'password' => 'hashed', 48 | ]; 49 | } 50 | 51 | // Relate to job listing 52 | public function jobListings(): HasMany 53 | { 54 | return $this->hasMany(JobListing::class); 55 | } 56 | 57 | // Relate to bookmarks 58 | public function bookmarkedJobs(): BelongsToMany 59 | { 60 | return $this->belongsToMany(Job::class, 'job_user_bookmarks')->withTimestamps(); 61 | } 62 | 63 | // Relation to applicants 64 | public function applicants(): HasMany 65 | { 66 | return $this->hasMany(Applicant::class, 'user_id'); 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /app/Policies/JobPolicy.php: -------------------------------------------------------------------------------- 1 | id == $job->user_id; 41 | } 42 | 43 | /** 44 | * Determine whether the user can delete the model. 45 | */ 46 | public function delete(User $user, Job $job): bool 47 | { 48 | return $user->id == $job->user_id; 49 | } 50 | 51 | /** 52 | * Determine whether the user can restore the model. 53 | */ 54 | public function restore(User $user, Job $job): bool 55 | { 56 | // 57 | } 58 | 59 | /** 60 | * Determine whether the user can permanently delete the model. 61 | */ 62 | public function forceDelete(User $user, Job $job): bool 63 | { 64 | // 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- 1 | JobPolicy::class 13 | ]; 14 | 15 | /** 16 | * Register services. 17 | */ 18 | public function register(): void 19 | { 20 | // 21 | } 22 | 23 | /** 24 | * Bootstrap services. 25 | */ 26 | public function boot(): void 27 | { 28 | $this->registerPolicies(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/View/Components/Alert.php: -------------------------------------------------------------------------------- 1 | handleCommand(new ArgvInput); 14 | 15 | exit($status); 16 | -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- 1 | withRouting( 10 | web: __DIR__ . '/../routes/web.php', 11 | commands: __DIR__ . '/../routes/console.php', 12 | health: '/up', 13 | ) 14 | ->withMiddleware(function (Middleware $middleware) { 15 | $middleware->validateCsrfTokens(except: [ 16 | '/submit' 17 | ]); 18 | 19 | // $middleware->append(LogRequest::class); 20 | }) 21 | ->withExceptions(function (Exceptions $exceptions) { 22 | // 23 | })->create(); 24 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /bootstrap/providers.php: -------------------------------------------------------------------------------- 1 | env('APP_NAME', 'Laravel'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Application Environment 21 | |-------------------------------------------------------------------------- 22 | | 23 | | This value determines the "environment" your application is currently 24 | | running in. This may determine how you prefer to configure various 25 | | services the application utilizes. Set this in your ".env" file. 26 | | 27 | */ 28 | 29 | 'env' => env('APP_ENV', 'production'), 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | Application Debug Mode 34 | |-------------------------------------------------------------------------- 35 | | 36 | | When your application is in debug mode, detailed error messages with 37 | | stack traces will be shown on every error that occurs within your 38 | | application. If disabled, a simple generic error page is shown. 39 | | 40 | */ 41 | 42 | 'debug' => (bool) env('APP_DEBUG', false), 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Application URL 47 | |-------------------------------------------------------------------------- 48 | | 49 | | This URL is used by the console to properly generate URLs when using 50 | | the Artisan command line tool. You should set this to the root of 51 | | the application so that it's available within Artisan commands. 52 | | 53 | */ 54 | 55 | 'url' => env('APP_URL', 'http://localhost'), 56 | 57 | /* 58 | |-------------------------------------------------------------------------- 59 | | Application Timezone 60 | |-------------------------------------------------------------------------- 61 | | 62 | | Here you may specify the default timezone for your application, which 63 | | will be used by the PHP date and date-time functions. The timezone 64 | | is set to "UTC" by default as it is suitable for most use cases. 65 | | 66 | */ 67 | 68 | 'timezone' => env('APP_TIMEZONE', 'UTC'), 69 | 70 | /* 71 | |-------------------------------------------------------------------------- 72 | | Application Locale Configuration 73 | |-------------------------------------------------------------------------- 74 | | 75 | | The application locale determines the default locale that will be used 76 | | by Laravel's translation / localization methods. This option can be 77 | | set to any locale for which you plan to have translation strings. 78 | | 79 | */ 80 | 81 | 'locale' => env('APP_LOCALE', 'en'), 82 | 83 | 'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'), 84 | 85 | 'faker_locale' => env('APP_FAKER_LOCALE', 'en_US'), 86 | 87 | /* 88 | |-------------------------------------------------------------------------- 89 | | Encryption Key 90 | |-------------------------------------------------------------------------- 91 | | 92 | | This key is utilized by Laravel's encryption services and should be set 93 | | to a random, 32 character string to ensure that all encrypted values 94 | | are secure. You should do this prior to deploying the application. 95 | | 96 | */ 97 | 98 | 'cipher' => 'AES-256-CBC', 99 | 100 | 'key' => env('APP_KEY'), 101 | 102 | 'previous_keys' => [ 103 | ...array_filter( 104 | explode(',', env('APP_PREVIOUS_KEYS', '')) 105 | ), 106 | ], 107 | 108 | /* 109 | |-------------------------------------------------------------------------- 110 | | Maintenance Mode Driver 111 | |-------------------------------------------------------------------------- 112 | | 113 | | These configuration options determine the driver used to determine and 114 | | manage Laravel's "maintenance mode" status. The "cache" driver will 115 | | allow maintenance mode to be controlled across multiple machines. 116 | | 117 | | Supported drivers: "file", "cache" 118 | | 119 | */ 120 | 121 | 'maintenance' => [ 122 | 'driver' => env('APP_MAINTENANCE_DRIVER', 'file'), 123 | 'store' => env('APP_MAINTENANCE_STORE', 'database'), 124 | ], 125 | 126 | ]; 127 | -------------------------------------------------------------------------------- /config/auth.php: -------------------------------------------------------------------------------- 1 | [ 17 | 'guard' => env('AUTH_GUARD', 'web'), 18 | 'passwords' => env('AUTH_PASSWORD_BROKER', 'users'), 19 | ], 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Authentication Guards 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Next, you may define every authentication guard for your application. 27 | | Of course, a great default configuration has been defined for you 28 | | which utilizes session storage plus the Eloquent user provider. 29 | | 30 | | All authentication guards have a user provider, which defines how the 31 | | users are actually retrieved out of your database or other storage 32 | | system used by the application. Typically, Eloquent is utilized. 33 | | 34 | | Supported: "session" 35 | | 36 | */ 37 | 38 | 'guards' => [ 39 | 'web' => [ 40 | 'driver' => 'session', 41 | 'provider' => 'users', 42 | ], 43 | ], 44 | 45 | /* 46 | |-------------------------------------------------------------------------- 47 | | User Providers 48 | |-------------------------------------------------------------------------- 49 | | 50 | | All authentication guards have a user provider, which defines how the 51 | | users are actually retrieved out of your database or other storage 52 | | system used by the application. Typically, Eloquent is utilized. 53 | | 54 | | If you have multiple user tables or models you may configure multiple 55 | | providers to represent the model / table. These providers may then 56 | | be assigned to any extra authentication guards you have defined. 57 | | 58 | | Supported: "database", "eloquent" 59 | | 60 | */ 61 | 62 | 'providers' => [ 63 | 'users' => [ 64 | 'driver' => 'eloquent', 65 | 'model' => env('AUTH_MODEL', App\Models\User::class), 66 | ], 67 | 68 | // 'users' => [ 69 | // 'driver' => 'database', 70 | // 'table' => 'users', 71 | // ], 72 | ], 73 | 74 | /* 75 | |-------------------------------------------------------------------------- 76 | | Resetting Passwords 77 | |-------------------------------------------------------------------------- 78 | | 79 | | These configuration options specify the behavior of Laravel's password 80 | | reset functionality, including the table utilized for token storage 81 | | and the user provider that is invoked to actually retrieve users. 82 | | 83 | | The expiry time is the number of minutes that each reset token will be 84 | | considered valid. This security feature keeps tokens short-lived so 85 | | they have less time to be guessed. You may change this as needed. 86 | | 87 | | The throttle setting is the number of seconds a user must wait before 88 | | generating more password reset tokens. This prevents the user from 89 | | quickly generating a very large amount of password reset tokens. 90 | | 91 | */ 92 | 93 | 'passwords' => [ 94 | 'users' => [ 95 | 'provider' => 'users', 96 | 'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'), 97 | 'expire' => 60, 98 | 'throttle' => 60, 99 | ], 100 | ], 101 | 102 | /* 103 | |-------------------------------------------------------------------------- 104 | | Password Confirmation Timeout 105 | |-------------------------------------------------------------------------- 106 | | 107 | | Here you may define the amount of seconds before a password confirmation 108 | | window expires and users are asked to re-enter their password via the 109 | | confirmation screen. By default, the timeout lasts for three hours. 110 | | 111 | */ 112 | 113 | 'password_timeout' => env('AUTH_PASSWORD_TIMEOUT', 10800), 114 | 115 | ]; 116 | -------------------------------------------------------------------------------- /config/cache.php: -------------------------------------------------------------------------------- 1 | env('CACHE_STORE', 'database'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Cache Stores 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the cache "stores" for your application as 26 | | well as their drivers. You may even define multiple stores for the 27 | | same cache driver to group types of items stored in your caches. 28 | | 29 | | Supported drivers: "array", "database", "file", "memcached", 30 | | "redis", "dynamodb", "octane", "null" 31 | | 32 | */ 33 | 34 | 'stores' => [ 35 | 36 | 'array' => [ 37 | 'driver' => 'array', 38 | 'serialize' => false, 39 | ], 40 | 41 | 'database' => [ 42 | 'driver' => 'database', 43 | 'connection' => env('DB_CACHE_CONNECTION'), 44 | 'table' => env('DB_CACHE_TABLE', 'cache'), 45 | 'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'), 46 | 'lock_table' => env('DB_CACHE_LOCK_TABLE'), 47 | ], 48 | 49 | 'file' => [ 50 | 'driver' => 'file', 51 | 'path' => storage_path('framework/cache/data'), 52 | 'lock_path' => storage_path('framework/cache/data'), 53 | ], 54 | 55 | 'memcached' => [ 56 | 'driver' => 'memcached', 57 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), 58 | 'sasl' => [ 59 | env('MEMCACHED_USERNAME'), 60 | env('MEMCACHED_PASSWORD'), 61 | ], 62 | 'options' => [ 63 | // Memcached::OPT_CONNECT_TIMEOUT => 2000, 64 | ], 65 | 'servers' => [ 66 | [ 67 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'), 68 | 'port' => env('MEMCACHED_PORT', 11211), 69 | 'weight' => 100, 70 | ], 71 | ], 72 | ], 73 | 74 | 'redis' => [ 75 | 'driver' => 'redis', 76 | 'connection' => env('REDIS_CACHE_CONNECTION', 'cache'), 77 | 'lock_connection' => env('REDIS_CACHE_LOCK_CONNECTION', 'default'), 78 | ], 79 | 80 | 'dynamodb' => [ 81 | 'driver' => 'dynamodb', 82 | 'key' => env('AWS_ACCESS_KEY_ID'), 83 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 84 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 85 | 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), 86 | 'endpoint' => env('DYNAMODB_ENDPOINT'), 87 | ], 88 | 89 | 'octane' => [ 90 | 'driver' => 'octane', 91 | ], 92 | 93 | ], 94 | 95 | /* 96 | |-------------------------------------------------------------------------- 97 | | Cache Key Prefix 98 | |-------------------------------------------------------------------------- 99 | | 100 | | When utilizing the APC, database, memcached, Redis, and DynamoDB cache 101 | | stores, there might be other applications using the same cache. For 102 | | that reason, you may prefix every cache key to avoid collisions. 103 | | 104 | */ 105 | 106 | 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'), 107 | 108 | ]; 109 | -------------------------------------------------------------------------------- /config/database.php: -------------------------------------------------------------------------------- 1 | env('DB_CONNECTION', 'sqlite'), 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Database Connections 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Below are all of the database connections defined for your application. 27 | | An example configuration is provided for each database system which 28 | | is supported by Laravel. You're free to add / remove connections. 29 | | 30 | */ 31 | 32 | 'connections' => [ 33 | 34 | 'sqlite' => [ 35 | 'driver' => 'sqlite', 36 | 'url' => env('DB_URL'), 37 | 'database' => env('DB_DATABASE', database_path('database.sqlite')), 38 | 'prefix' => '', 39 | 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), 40 | 'busy_timeout' => null, 41 | 'journal_mode' => null, 42 | 'synchronous' => null, 43 | ], 44 | 45 | 'mysql' => [ 46 | 'driver' => 'mysql', 47 | 'url' => env('DB_URL'), 48 | 'host' => env('DB_HOST', '127.0.0.1'), 49 | 'port' => env('DB_PORT', '3306'), 50 | 'database' => env('DB_DATABASE', 'laravel'), 51 | 'username' => env('DB_USERNAME', 'root'), 52 | 'password' => env('DB_PASSWORD', ''), 53 | 'unix_socket' => env('DB_SOCKET', ''), 54 | 'charset' => env('DB_CHARSET', 'utf8mb4'), 55 | 'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'), 56 | 'prefix' => '', 57 | 'prefix_indexes' => true, 58 | 'strict' => true, 59 | 'engine' => null, 60 | 'options' => extension_loaded('pdo_mysql') ? array_filter([ 61 | PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), 62 | ]) : [], 63 | ], 64 | 65 | 'mariadb' => [ 66 | 'driver' => 'mariadb', 67 | 'url' => env('DB_URL'), 68 | 'host' => env('DB_HOST', '127.0.0.1'), 69 | 'port' => env('DB_PORT', '3306'), 70 | 'database' => env('DB_DATABASE', 'laravel'), 71 | 'username' => env('DB_USERNAME', 'root'), 72 | 'password' => env('DB_PASSWORD', ''), 73 | 'unix_socket' => env('DB_SOCKET', ''), 74 | 'charset' => env('DB_CHARSET', 'utf8mb4'), 75 | 'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'), 76 | 'prefix' => '', 77 | 'prefix_indexes' => true, 78 | 'strict' => true, 79 | 'engine' => null, 80 | 'options' => extension_loaded('pdo_mysql') ? array_filter([ 81 | PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), 82 | ]) : [], 83 | ], 84 | 85 | 'pgsql' => [ 86 | 'driver' => 'pgsql', 87 | 'url' => env('DB_URL'), 88 | 'host' => env('DB_HOST', '127.0.0.1'), 89 | 'port' => env('DB_PORT', '5432'), 90 | 'database' => env('DB_DATABASE', 'laravel'), 91 | 'username' => env('DB_USERNAME', 'root'), 92 | 'password' => env('DB_PASSWORD', ''), 93 | 'charset' => env('DB_CHARSET', 'utf8'), 94 | 'prefix' => '', 95 | 'prefix_indexes' => true, 96 | 'search_path' => 'public', 97 | 'sslmode' => 'prefer', 98 | ], 99 | 100 | 'sqlsrv' => [ 101 | 'driver' => 'sqlsrv', 102 | 'url' => env('DB_URL'), 103 | 'host' => env('DB_HOST', 'localhost'), 104 | 'port' => env('DB_PORT', '1433'), 105 | 'database' => env('DB_DATABASE', 'laravel'), 106 | 'username' => env('DB_USERNAME', 'root'), 107 | 'password' => env('DB_PASSWORD', ''), 108 | 'charset' => env('DB_CHARSET', 'utf8'), 109 | 'prefix' => '', 110 | 'prefix_indexes' => true, 111 | // 'encrypt' => env('DB_ENCRYPT', 'yes'), 112 | // 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'false'), 113 | ], 114 | 115 | ], 116 | 117 | /* 118 | |-------------------------------------------------------------------------- 119 | | Migration Repository Table 120 | |-------------------------------------------------------------------------- 121 | | 122 | | This table keeps track of all the migrations that have already run for 123 | | your application. Using this information, we can determine which of 124 | | the migrations on disk haven't actually been run on the database. 125 | | 126 | */ 127 | 128 | 'migrations' => [ 129 | 'table' => 'migrations', 130 | 'update_date_on_publish' => true, 131 | ], 132 | 133 | /* 134 | |-------------------------------------------------------------------------- 135 | | Redis Databases 136 | |-------------------------------------------------------------------------- 137 | | 138 | | Redis is an open source, fast, and advanced key-value store that also 139 | | provides a richer body of commands than a typical key-value system 140 | | such as Memcached. You may define your connection settings here. 141 | | 142 | */ 143 | 144 | 'redis' => [ 145 | 146 | 'client' => env('REDIS_CLIENT', 'phpredis'), 147 | 148 | 'options' => [ 149 | 'cluster' => env('REDIS_CLUSTER', 'redis'), 150 | 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), 151 | ], 152 | 153 | 'default' => [ 154 | 'url' => env('REDIS_URL'), 155 | 'host' => env('REDIS_HOST', '127.0.0.1'), 156 | 'username' => env('REDIS_USERNAME'), 157 | 'password' => env('REDIS_PASSWORD'), 158 | 'port' => env('REDIS_PORT', '6379'), 159 | 'database' => env('REDIS_DB', '0'), 160 | ], 161 | 162 | 'cache' => [ 163 | 'url' => env('REDIS_URL'), 164 | 'host' => env('REDIS_HOST', '127.0.0.1'), 165 | 'username' => env('REDIS_USERNAME'), 166 | 'password' => env('REDIS_PASSWORD'), 167 | 'port' => env('REDIS_PORT', '6379'), 168 | 'database' => env('REDIS_CACHE_DB', '1'), 169 | ], 170 | 171 | ], 172 | 173 | ]; 174 | -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- 1 | env('FILESYSTEM_DISK', 'local'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Filesystem Disks 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Below you may configure as many filesystem disks as necessary, and you 24 | | may even configure multiple disks for the same driver. Examples for 25 | | most supported storage drivers are configured here for reference. 26 | | 27 | | Supported drivers: "local", "ftp", "sftp", "s3" 28 | | 29 | */ 30 | 31 | 'disks' => [ 32 | 33 | 'local' => [ 34 | 'driver' => 'local', 35 | 'root' => storage_path('app'), 36 | 'throw' => false, 37 | ], 38 | 39 | 'public' => [ 40 | 'driver' => 'local', 41 | 'root' => storage_path('app/public'), 42 | 'url' => env('APP_URL').'/storage', 43 | 'visibility' => 'public', 44 | 'throw' => false, 45 | ], 46 | 47 | 's3' => [ 48 | 'driver' => 's3', 49 | 'key' => env('AWS_ACCESS_KEY_ID'), 50 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 51 | 'region' => env('AWS_DEFAULT_REGION'), 52 | 'bucket' => env('AWS_BUCKET'), 53 | 'url' => env('AWS_URL'), 54 | 'endpoint' => env('AWS_ENDPOINT'), 55 | 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), 56 | 'throw' => false, 57 | ], 58 | 59 | ], 60 | 61 | /* 62 | |-------------------------------------------------------------------------- 63 | | Symbolic Links 64 | |-------------------------------------------------------------------------- 65 | | 66 | | Here you may configure the symbolic links that will be created when the 67 | | `storage:link` Artisan command is executed. The array keys should be 68 | | the locations of the links and the values should be their targets. 69 | | 70 | */ 71 | 72 | 'links' => [ 73 | public_path('storage') => storage_path('app/public'), 74 | ], 75 | 76 | ]; 77 | -------------------------------------------------------------------------------- /config/logging.php: -------------------------------------------------------------------------------- 1 | env('LOG_CHANNEL', 'stack'), 22 | 23 | /* 24 | |-------------------------------------------------------------------------- 25 | | Deprecations Log Channel 26 | |-------------------------------------------------------------------------- 27 | | 28 | | This option controls the log channel that should be used to log warnings 29 | | regarding deprecated PHP and library features. This allows you to get 30 | | your application ready for upcoming major versions of dependencies. 31 | | 32 | */ 33 | 34 | 'deprecations' => [ 35 | 'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'), 36 | 'trace' => env('LOG_DEPRECATIONS_TRACE', false), 37 | ], 38 | 39 | /* 40 | |-------------------------------------------------------------------------- 41 | | Log Channels 42 | |-------------------------------------------------------------------------- 43 | | 44 | | Here you may configure the log channels for your application. Laravel 45 | | utilizes the Monolog PHP logging library, which includes a variety 46 | | of powerful log handlers and formatters that you're free to use. 47 | | 48 | | Available drivers: "single", "daily", "slack", "syslog", 49 | | "errorlog", "monolog", "custom", "stack" 50 | | 51 | */ 52 | 53 | 'channels' => [ 54 | 55 | 'stack' => [ 56 | 'driver' => 'stack', 57 | 'channels' => explode(',', env('LOG_STACK', 'single')), 58 | 'ignore_exceptions' => false, 59 | ], 60 | 61 | 'single' => [ 62 | 'driver' => 'single', 63 | 'path' => storage_path('logs/laravel.log'), 64 | 'level' => env('LOG_LEVEL', 'debug'), 65 | 'replace_placeholders' => true, 66 | ], 67 | 68 | 'daily' => [ 69 | 'driver' => 'daily', 70 | 'path' => storage_path('logs/laravel.log'), 71 | 'level' => env('LOG_LEVEL', 'debug'), 72 | 'days' => env('LOG_DAILY_DAYS', 14), 73 | 'replace_placeholders' => true, 74 | ], 75 | 76 | 'slack' => [ 77 | 'driver' => 'slack', 78 | 'url' => env('LOG_SLACK_WEBHOOK_URL'), 79 | 'username' => env('LOG_SLACK_USERNAME', 'Laravel Log'), 80 | 'emoji' => env('LOG_SLACK_EMOJI', ':boom:'), 81 | 'level' => env('LOG_LEVEL', 'critical'), 82 | 'replace_placeholders' => true, 83 | ], 84 | 85 | 'papertrail' => [ 86 | 'driver' => 'monolog', 87 | 'level' => env('LOG_LEVEL', 'debug'), 88 | 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class), 89 | 'handler_with' => [ 90 | 'host' => env('PAPERTRAIL_URL'), 91 | 'port' => env('PAPERTRAIL_PORT'), 92 | 'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'), 93 | ], 94 | 'processors' => [PsrLogMessageProcessor::class], 95 | ], 96 | 97 | 'stderr' => [ 98 | 'driver' => 'monolog', 99 | 'level' => env('LOG_LEVEL', 'debug'), 100 | 'handler' => StreamHandler::class, 101 | 'formatter' => env('LOG_STDERR_FORMATTER'), 102 | 'with' => [ 103 | 'stream' => 'php://stderr', 104 | ], 105 | 'processors' => [PsrLogMessageProcessor::class], 106 | ], 107 | 108 | 'syslog' => [ 109 | 'driver' => 'syslog', 110 | 'level' => env('LOG_LEVEL', 'debug'), 111 | 'facility' => env('LOG_SYSLOG_FACILITY', LOG_USER), 112 | 'replace_placeholders' => true, 113 | ], 114 | 115 | 'errorlog' => [ 116 | 'driver' => 'errorlog', 117 | 'level' => env('LOG_LEVEL', 'debug'), 118 | 'replace_placeholders' => true, 119 | ], 120 | 121 | 'null' => [ 122 | 'driver' => 'monolog', 123 | 'handler' => NullHandler::class, 124 | ], 125 | 126 | 'emergency' => [ 127 | 'path' => storage_path('logs/laravel.log'), 128 | ], 129 | 130 | ], 131 | 132 | ]; 133 | -------------------------------------------------------------------------------- /config/mail.php: -------------------------------------------------------------------------------- 1 | env('MAIL_MAILER', 'log'), 18 | 19 | /* 20 | |-------------------------------------------------------------------------- 21 | | Mailer Configurations 22 | |-------------------------------------------------------------------------- 23 | | 24 | | Here you may configure all of the mailers used by your application plus 25 | | their respective settings. Several examples have been configured for 26 | | you and you are free to add your own as your application requires. 27 | | 28 | | Laravel supports a variety of mail "transport" drivers that can be used 29 | | when delivering an email. You may specify which one you're using for 30 | | your mailers below. You may also add additional mailers if needed. 31 | | 32 | | Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2", 33 | | "postmark", "resend", "log", "array", 34 | | "failover", "roundrobin" 35 | | 36 | */ 37 | 38 | 'mailers' => [ 39 | 40 | 'smtp' => [ 41 | 'transport' => 'smtp', 42 | 'url' => env('MAIL_URL'), 43 | 'host' => env('MAIL_HOST', '127.0.0.1'), 44 | 'port' => env('MAIL_PORT', 2525), 45 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'), 46 | 'username' => env('MAIL_USERNAME'), 47 | 'password' => env('MAIL_PASSWORD'), 48 | 'timeout' => null, 49 | 'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url(env('APP_URL', 'http://localhost'), PHP_URL_HOST)), 50 | ], 51 | 52 | 'ses' => [ 53 | 'transport' => 'ses', 54 | ], 55 | 56 | 'postmark' => [ 57 | 'transport' => 'postmark', 58 | // 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'), 59 | // 'client' => [ 60 | // 'timeout' => 5, 61 | // ], 62 | ], 63 | 64 | 'resend' => [ 65 | 'transport' => 'resend', 66 | ], 67 | 68 | 'sendmail' => [ 69 | 'transport' => 'sendmail', 70 | 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), 71 | ], 72 | 73 | 'log' => [ 74 | 'transport' => 'log', 75 | 'channel' => env('MAIL_LOG_CHANNEL'), 76 | ], 77 | 78 | 'array' => [ 79 | 'transport' => 'array', 80 | ], 81 | 82 | 'failover' => [ 83 | 'transport' => 'failover', 84 | 'mailers' => [ 85 | 'smtp', 86 | 'log', 87 | ], 88 | ], 89 | 90 | 'roundrobin' => [ 91 | 'transport' => 'roundrobin', 92 | 'mailers' => [ 93 | 'ses', 94 | 'postmark', 95 | ], 96 | ], 97 | 98 | ], 99 | 100 | /* 101 | |-------------------------------------------------------------------------- 102 | | Global "From" Address 103 | |-------------------------------------------------------------------------- 104 | | 105 | | You may wish for all emails sent by your application to be sent from 106 | | the same address. Here you may specify a name and address that is 107 | | used globally for all emails that are sent by your application. 108 | | 109 | */ 110 | 111 | 'from' => [ 112 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 113 | 'name' => env('MAIL_FROM_NAME', 'Example'), 114 | ], 115 | 116 | ]; 117 | -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- 1 | env('QUEUE_CONNECTION', 'database'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Queue Connections 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure the connection options for every queue backend 24 | | used by your application. An example configuration is provided for 25 | | each backend supported by Laravel. You're also free to add more. 26 | | 27 | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'sync' => [ 34 | 'driver' => 'sync', 35 | ], 36 | 37 | 'database' => [ 38 | 'driver' => 'database', 39 | 'connection' => env('DB_QUEUE_CONNECTION'), 40 | 'table' => env('DB_QUEUE_TABLE', 'jobs'), 41 | 'queue' => env('DB_QUEUE', 'default'), 42 | 'retry_after' => (int) env('DB_QUEUE_RETRY_AFTER', 90), 43 | 'after_commit' => false, 44 | ], 45 | 46 | 'beanstalkd' => [ 47 | 'driver' => 'beanstalkd', 48 | 'host' => env('BEANSTALKD_QUEUE_HOST', 'localhost'), 49 | 'queue' => env('BEANSTALKD_QUEUE', 'default'), 50 | 'retry_after' => (int) env('BEANSTALKD_QUEUE_RETRY_AFTER', 90), 51 | 'block_for' => 0, 52 | 'after_commit' => false, 53 | ], 54 | 55 | 'sqs' => [ 56 | 'driver' => 'sqs', 57 | 'key' => env('AWS_ACCESS_KEY_ID'), 58 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 59 | 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 60 | 'queue' => env('SQS_QUEUE', 'default'), 61 | 'suffix' => env('SQS_SUFFIX'), 62 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 63 | 'after_commit' => false, 64 | ], 65 | 66 | 'redis' => [ 67 | 'driver' => 'redis', 68 | 'connection' => env('REDIS_QUEUE_CONNECTION', 'default'), 69 | 'queue' => env('REDIS_QUEUE', 'default'), 70 | 'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90), 71 | 'block_for' => null, 72 | 'after_commit' => false, 73 | ], 74 | 75 | ], 76 | 77 | /* 78 | |-------------------------------------------------------------------------- 79 | | Job Batching 80 | |-------------------------------------------------------------------------- 81 | | 82 | | The following options configure the database and table that store job 83 | | batching information. These options can be updated to any database 84 | | connection and table which has been defined by your application. 85 | | 86 | */ 87 | 88 | 'batching' => [ 89 | 'database' => env('DB_CONNECTION', 'sqlite'), 90 | 'table' => 'job_batches', 91 | ], 92 | 93 | /* 94 | |-------------------------------------------------------------------------- 95 | | Failed Queue Jobs 96 | |-------------------------------------------------------------------------- 97 | | 98 | | These options configure the behavior of failed queue job logging so you 99 | | can control how and where failed jobs are stored. Laravel ships with 100 | | support for storing failed jobs in a simple file or in a database. 101 | | 102 | | Supported drivers: "database-uuids", "dynamodb", "file", "null" 103 | | 104 | */ 105 | 106 | 'failed' => [ 107 | 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), 108 | 'database' => env('DB_CONNECTION', 'sqlite'), 109 | 'table' => 'failed_jobs', 110 | ], 111 | 112 | ]; 113 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'token' => env('POSTMARK_TOKEN'), 19 | ], 20 | 21 | 'ses' => [ 22 | 'key' => env('AWS_ACCESS_KEY_ID'), 23 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 24 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 25 | ], 26 | 27 | 'resend' => [ 28 | 'key' => env('RESEND_KEY'), 29 | ], 30 | 31 | 'slack' => [ 32 | 'notifications' => [ 33 | 'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'), 34 | 'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'), 35 | ], 36 | ], 37 | 38 | ]; 39 | -------------------------------------------------------------------------------- /config/session.php: -------------------------------------------------------------------------------- 1 | env('SESSION_DRIVER', 'database'), 22 | 23 | /* 24 | |-------------------------------------------------------------------------- 25 | | Session Lifetime 26 | |-------------------------------------------------------------------------- 27 | | 28 | | Here you may specify the number of minutes that you wish the session 29 | | to be allowed to remain idle before it expires. If you want them 30 | | to expire immediately when the browser is closed then you may 31 | | indicate that via the expire_on_close configuration option. 32 | | 33 | */ 34 | 35 | 'lifetime' => env('SESSION_LIFETIME', 120), 36 | 37 | 'expire_on_close' => env('SESSION_EXPIRE_ON_CLOSE', false), 38 | 39 | /* 40 | |-------------------------------------------------------------------------- 41 | | Session Encryption 42 | |-------------------------------------------------------------------------- 43 | | 44 | | This option allows you to easily specify that all of your session data 45 | | should be encrypted before it's stored. All encryption is performed 46 | | automatically by Laravel and you may use the session like normal. 47 | | 48 | */ 49 | 50 | 'encrypt' => env('SESSION_ENCRYPT', false), 51 | 52 | /* 53 | |-------------------------------------------------------------------------- 54 | | Session File Location 55 | |-------------------------------------------------------------------------- 56 | | 57 | | When utilizing the "file" session driver, the session files are placed 58 | | on disk. The default storage location is defined here; however, you 59 | | are free to provide another location where they should be stored. 60 | | 61 | */ 62 | 63 | 'files' => storage_path('framework/sessions'), 64 | 65 | /* 66 | |-------------------------------------------------------------------------- 67 | | Session Database Connection 68 | |-------------------------------------------------------------------------- 69 | | 70 | | When using the "database" or "redis" session drivers, you may specify a 71 | | connection that should be used to manage these sessions. This should 72 | | correspond to a connection in your database configuration options. 73 | | 74 | */ 75 | 76 | 'connection' => env('SESSION_CONNECTION'), 77 | 78 | /* 79 | |-------------------------------------------------------------------------- 80 | | Session Database Table 81 | |-------------------------------------------------------------------------- 82 | | 83 | | When using the "database" session driver, you may specify the table to 84 | | be used to store sessions. Of course, a sensible default is defined 85 | | for you; however, you're welcome to change this to another table. 86 | | 87 | */ 88 | 89 | 'table' => env('SESSION_TABLE', 'sessions'), 90 | 91 | /* 92 | |-------------------------------------------------------------------------- 93 | | Session Cache Store 94 | |-------------------------------------------------------------------------- 95 | | 96 | | When using one of the framework's cache driven session backends, you may 97 | | define the cache store which should be used to store the session data 98 | | between requests. This must match one of your defined cache stores. 99 | | 100 | | Affects: "apc", "dynamodb", "memcached", "redis" 101 | | 102 | */ 103 | 104 | 'store' => env('SESSION_STORE'), 105 | 106 | /* 107 | |-------------------------------------------------------------------------- 108 | | Session Sweeping Lottery 109 | |-------------------------------------------------------------------------- 110 | | 111 | | Some session drivers must manually sweep their storage location to get 112 | | rid of old sessions from storage. Here are the chances that it will 113 | | happen on a given request. By default, the odds are 2 out of 100. 114 | | 115 | */ 116 | 117 | 'lottery' => [2, 100], 118 | 119 | /* 120 | |-------------------------------------------------------------------------- 121 | | Session Cookie Name 122 | |-------------------------------------------------------------------------- 123 | | 124 | | Here you may change the name of the session cookie that is created by 125 | | the framework. Typically, you should not need to change this value 126 | | since doing so does not grant a meaningful security improvement. 127 | | 128 | */ 129 | 130 | 'cookie' => env( 131 | 'SESSION_COOKIE', 132 | Str::slug(env('APP_NAME', 'laravel'), '_').'_session' 133 | ), 134 | 135 | /* 136 | |-------------------------------------------------------------------------- 137 | | Session Cookie Path 138 | |-------------------------------------------------------------------------- 139 | | 140 | | The session cookie path determines the path for which the cookie will 141 | | be regarded as available. Typically, this will be the root path of 142 | | your application, but you're free to change this when necessary. 143 | | 144 | */ 145 | 146 | 'path' => env('SESSION_PATH', '/'), 147 | 148 | /* 149 | |-------------------------------------------------------------------------- 150 | | Session Cookie Domain 151 | |-------------------------------------------------------------------------- 152 | | 153 | | This value determines the domain and subdomains the session cookie is 154 | | available to. By default, the cookie will be available to the root 155 | | domain and all subdomains. Typically, this shouldn't be changed. 156 | | 157 | */ 158 | 159 | 'domain' => env('SESSION_DOMAIN'), 160 | 161 | /* 162 | |-------------------------------------------------------------------------- 163 | | HTTPS Only Cookies 164 | |-------------------------------------------------------------------------- 165 | | 166 | | By setting this option to true, session cookies will only be sent back 167 | | to the server if the browser has a HTTPS connection. This will keep 168 | | the cookie from being sent to you when it can't be done securely. 169 | | 170 | */ 171 | 172 | 'secure' => env('SESSION_SECURE_COOKIE'), 173 | 174 | /* 175 | |-------------------------------------------------------------------------- 176 | | HTTP Access Only 177 | |-------------------------------------------------------------------------- 178 | | 179 | | Setting this value to true will prevent JavaScript from accessing the 180 | | value of the cookie and the cookie will only be accessible through 181 | | the HTTP protocol. It's unlikely you should disable this option. 182 | | 183 | */ 184 | 185 | 'http_only' => env('SESSION_HTTP_ONLY', true), 186 | 187 | /* 188 | |-------------------------------------------------------------------------- 189 | | Same-Site Cookies 190 | |-------------------------------------------------------------------------- 191 | | 192 | | This option determines how your cookies behave when cross-site requests 193 | | take place, and can be used to mitigate CSRF attacks. By default, we 194 | | will set this value to "lax" to permit secure cross-site requests. 195 | | 196 | | See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value 197 | | 198 | | Supported: "lax", "strict", "none", null 199 | | 200 | */ 201 | 202 | 'same_site' => env('SESSION_SAME_SITE', 'lax'), 203 | 204 | /* 205 | |-------------------------------------------------------------------------- 206 | | Partitioned Cookies 207 | |-------------------------------------------------------------------------- 208 | | 209 | | Setting this value to true will tie the cookie to the top-level site for 210 | | a cross-site context. Partitioned cookies are accepted by the browser 211 | | when flagged "secure" and the Same-Site attribute is set to "none". 212 | | 213 | */ 214 | 215 | 'partitioned' => env('SESSION_PARTITIONED_COOKIE', false), 216 | 217 | ]; 218 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite* 2 | -------------------------------------------------------------------------------- /database/factories/JobFactory.php: -------------------------------------------------------------------------------- 1 | 10 | */ 11 | class JobFactory extends Factory 12 | { 13 | /** 14 | * Define the model's default state. 15 | * 16 | * @return array 17 | */ 18 | public function definition(): array 19 | { 20 | return [ 21 | 'user_id' => User::factory(), 22 | 'title' => $this->faker->jobTitle(), 23 | 'description' => $this->faker->paragraphs(2, true), 24 | 'salary' => $this->faker->numberBetween(40000, 120000), 25 | 'tags' => implode(', ', $this->faker->words(3)), 26 | 'job_type' => $this->faker->randomElement(['Full-Time', 'Part-Time', 'Contract']), 27 | 'remote' => $this->faker->boolean(), 28 | 'requirements' => $this->faker->sentences(3, true), 29 | 'benefits' => $this->faker->sentences(2, true), 30 | 'address' => $this->faker->streetAddress(), 31 | 'city' => $this->faker->city(), 32 | 'state' => $this->faker->state(), 33 | 'zipcode' => $this->faker->postcode(), 34 | 'contact_email' => $this->faker->safeEmail(), 35 | 'contact_phone' => $this->faker->phoneNumber(), 36 | 'company_name' => $this->faker->company(), 37 | 'company_description' => $this->faker->paragraphs(2, true), 38 | 'company_logo' => $this->faker->imageUrl(100, 100, 'business', true, 'logo'), 39 | 'company_website' => $this->faker->url(), 40 | ]; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /database/factories/UserFactory.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | class UserFactory extends Factory 13 | { 14 | /** 15 | * The current password being used by the factory. 16 | */ 17 | protected static ?string $password; 18 | 19 | /** 20 | * Define the model's default state. 21 | * 22 | * @return array 23 | */ 24 | public function definition(): array 25 | { 26 | return [ 27 | 'name' => fake()->name(), 28 | 'email' => fake()->unique()->safeEmail(), 29 | 'email_verified_at' => now(), 30 | 'password' => static::$password ??= Hash::make('password'), 31 | 'remember_token' => Str::random(10), 32 | ]; 33 | } 34 | 35 | /** 36 | * Indicate that the model's email address should be unverified. 37 | */ 38 | public function unverified(): static 39 | { 40 | return $this->state(fn (array $attributes) => [ 41 | 'email_verified_at' => null, 42 | ]); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /database/migrations/0001_01_01_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | id(); 16 | $table->string('name'); 17 | $table->string('email')->unique(); 18 | $table->timestamp('email_verified_at')->nullable(); 19 | $table->string('password'); 20 | $table->rememberToken(); 21 | $table->timestamps(); 22 | }); 23 | 24 | Schema::create('password_reset_tokens', function (Blueprint $table) { 25 | $table->string('email')->primary(); 26 | $table->string('token'); 27 | $table->timestamp('created_at')->nullable(); 28 | }); 29 | 30 | Schema::create('sessions', function (Blueprint $table) { 31 | $table->string('id')->primary(); 32 | $table->foreignId('user_id')->nullable()->index(); 33 | $table->string('ip_address', 45)->nullable(); 34 | $table->text('user_agent')->nullable(); 35 | $table->longText('payload'); 36 | $table->integer('last_activity')->index(); 37 | }); 38 | } 39 | 40 | /** 41 | * Reverse the migrations. 42 | */ 43 | public function down(): void 44 | { 45 | Schema::dropIfExists('users'); 46 | Schema::dropIfExists('password_reset_tokens'); 47 | Schema::dropIfExists('sessions'); 48 | } 49 | }; 50 | -------------------------------------------------------------------------------- /database/migrations/0001_01_01_000001_create_cache_table.php: -------------------------------------------------------------------------------- 1 | string('key')->primary(); 16 | $table->mediumText('value'); 17 | $table->integer('expiration'); 18 | }); 19 | 20 | Schema::create('cache_locks', function (Blueprint $table) { 21 | $table->string('key')->primary(); 22 | $table->string('owner'); 23 | $table->integer('expiration'); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | */ 30 | public function down(): void 31 | { 32 | Schema::dropIfExists('cache'); 33 | Schema::dropIfExists('cache_locks'); 34 | } 35 | }; 36 | -------------------------------------------------------------------------------- /database/migrations/0001_01_01_000002_create_jobs_table.php: -------------------------------------------------------------------------------- 1 | id(); 16 | $table->string('queue')->index(); 17 | $table->longText('payload'); 18 | $table->unsignedTinyInteger('attempts'); 19 | $table->unsignedInteger('reserved_at')->nullable(); 20 | $table->unsignedInteger('available_at'); 21 | $table->unsignedInteger('created_at'); 22 | }); 23 | 24 | Schema::create('job_batches', function (Blueprint $table) { 25 | $table->string('id')->primary(); 26 | $table->string('name'); 27 | $table->integer('total_jobs'); 28 | $table->integer('pending_jobs'); 29 | $table->integer('failed_jobs'); 30 | $table->longText('failed_job_ids'); 31 | $table->mediumText('options')->nullable(); 32 | $table->integer('cancelled_at')->nullable(); 33 | $table->integer('created_at'); 34 | $table->integer('finished_at')->nullable(); 35 | }); 36 | 37 | Schema::create('failed_jobs', function (Blueprint $table) { 38 | $table->id(); 39 | $table->string('uuid')->unique(); 40 | $table->text('connection'); 41 | $table->text('queue'); 42 | $table->longText('payload'); 43 | $table->longText('exception'); 44 | $table->timestamp('failed_at')->useCurrent(); 45 | }); 46 | } 47 | 48 | /** 49 | * Reverse the migrations. 50 | */ 51 | public function down(): void 52 | { 53 | Schema::dropIfExists('jobs'); 54 | Schema::dropIfExists('job_batches'); 55 | Schema::dropIfExists('failed_jobs'); 56 | } 57 | }; 58 | -------------------------------------------------------------------------------- /database/migrations/2024_09_11_172954_create_job_listings_table.php: -------------------------------------------------------------------------------- 1 | id(); 16 | $table->string('title'); 17 | $table->text('description'); 18 | $table->timestamps(); 19 | }); 20 | } 21 | 22 | /** 23 | * Reverse the migrations. 24 | */ 25 | public function down(): void 26 | { 27 | Schema::dropIfExists('job_listings'); 28 | } 29 | }; 30 | -------------------------------------------------------------------------------- /database/migrations/2024_09_12_120240_add_fields_to_job_listings_table.php: -------------------------------------------------------------------------------- 1 | truncate(); 16 | 17 | Schema::table('job_listings', function (Blueprint $table) { 18 | $table->unsignedBigInteger('user_id')->after('id'); 19 | 20 | $table->integer('salary'); 21 | $table->string('tags')->nullable(); 22 | $table->enum('job_type', ['Full-Time', 'Part-Time', 'Contract', 'Temporary', 'Internship', 'Volunteer', 'On-Call'])->default('Full-Time'); 23 | $table->boolean('remote')->default(false); 24 | $table->text('requirements')->nullable(); 25 | $table->text('benefits')->nullable(); 26 | $table->string('address')->nullable(); 27 | $table->string('city'); 28 | $table->string('state'); 29 | $table->string('zipcode')->nullable(); 30 | $table->string('contact_email'); 31 | $table->string('contact_phone')->nullable(); 32 | $table->string('company_name'); 33 | $table->text('company_description')->nullable(); 34 | $table->string('company_logo')->nullable(); 35 | $table->string('company_website')->nullable(); 36 | 37 | // Add user foriegn key constraint 38 | $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); 39 | }); 40 | } 41 | 42 | /** 43 | * Reverse the migrations. 44 | */ 45 | public function down(): void 46 | { 47 | Schema::table('job_listings', function (Blueprint $table) { 48 | $table->dropForeign(['user_id']); 49 | $table->dropColumn('user_id'); 50 | 51 | $table->dropColumn(['salary', 'tags', 'job_type', 'remote', 'requirements', 'benefits', 'address', 'city', 'state', 'zipcode', 'contact_email', 'contact_phone', 'company_name', 'company_description', 'company_logo', 'company_website']); 52 | }); 53 | } 54 | }; 55 | -------------------------------------------------------------------------------- /database/migrations/2024_09_16_134742_add_avatar_to_users_table.php: -------------------------------------------------------------------------------- 1 | string('avatar')->nullable()->after('email'); 16 | }); 17 | } 18 | 19 | /** 20 | * Reverse the migrations. 21 | */ 22 | public function down(): void 23 | { 24 | Schema::table('users', function (Blueprint $table) { 25 | $table->dropColumn('avatar'); 26 | }); 27 | } 28 | }; 29 | -------------------------------------------------------------------------------- /database/migrations/2024_09_16_180928_create_job_user_bookmarks_table.php: -------------------------------------------------------------------------------- 1 | id(); 16 | $table->foreignId('user_id')->constrained()->onDelete('cascade'); 17 | $table->foreignId('job_id')->constrained('job_listings')->onDelete('cascade'); 18 | $table->timestamps(); 19 | }); 20 | } 21 | 22 | /** 23 | * Reverse the migrations. 24 | */ 25 | public function down(): void 26 | { 27 | Schema::dropIfExists('job_user_bookmarks'); 28 | } 29 | }; 30 | -------------------------------------------------------------------------------- /database/migrations/2024_09_17_130558_create_applicants_table.php: -------------------------------------------------------------------------------- 1 | id(); 16 | $table->foreignId('user_id')->constrained()->onDelete('cascade'); 17 | $table->foreignId('job_id')->constrained('job_listings')->onDelete('cascade'); 18 | $table->string('full_name'); 19 | $table->string('contact_phone')->nullable(); 20 | $table->string('contact_email'); 21 | $table->text('message')->nullable(); 22 | $table->string('location')->nullable(); 23 | $table->string('resume_path'); 24 | $table->timestamps(); 25 | }); 26 | } 27 | 28 | /** 29 | * Reverse the migrations. 30 | */ 31 | public function down(): void 32 | { 33 | Schema::dropIfExists('applicants'); 34 | } 35 | }; 36 | -------------------------------------------------------------------------------- /database/seeders/BookmarkSeeder.php: -------------------------------------------------------------------------------- 1 | firstOrFail(); 19 | 20 | // Get all job ids 21 | $jobIds = Job::pluck('id')->toArray(); 22 | 23 | // Randomly select jobs to bookmark 24 | $randomJobIds = array_rand($jobIds, 3); 25 | 26 | // Attach the selected jobs as bookmarks for the test user 27 | foreach ($randomJobIds as $jobId) { 28 | $testUser->bookmarkedJobs()->attach($jobIds[$jobId]); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /database/seeders/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | truncate(); 19 | DB::table('applicants')->truncate(); 20 | DB::table('job_listings')->truncate(); 21 | DB::table('users')->truncate(); 22 | 23 | $this->call(TestUserSeeder::class); 24 | $this->call(RandomUserSeeder::class); 25 | $this->call(JobSeeder::class); 26 | $this->call(BookmarkSeeder::class); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /database/seeders/JobSeeder.php: -------------------------------------------------------------------------------- 1 | value('id'); 22 | 23 | // Get all other user ids from user model 24 | $userIds = User::where('email', '!=', 'test@test.com')->pluck('id')->toArray(); 25 | 26 | foreach ($jobListings as $index => &$listing) { 27 | if ($index < 2) { 28 | // Assign the first two listings to the test user 29 | $listing['user_id'] = $testUserId; 30 | } else { 31 | // Assign user id to listing 32 | $listing['user_id'] = $userIds[array_rand($userIds)]; 33 | } 34 | 35 | // Add timestamps 36 | $listing['created_at'] = now(); 37 | $listing['updated_at'] = now(); 38 | } 39 | 40 | // Insert job listings 41 | DB::table('job_listings')->insert($jobListings); 42 | echo 'Jobs created successfully!'; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /database/seeders/RandomJobSeeder.php: -------------------------------------------------------------------------------- 1 | create(); 17 | echo 'Jobs created successfully!'; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /database/seeders/RandomUserSeeder.php: -------------------------------------------------------------------------------- 1 | create(); 17 | echo 'Users created successfully!'; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /database/seeders/TestUserSeeder.php: -------------------------------------------------------------------------------- 1 | 'Test User', 20 | 'email' => 'test@test.com', 21 | 'email_verified_at' => Carbon::now(), 22 | 'password' => Hash::make('12345678') 23 | ]); 24 | 25 | return $user; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "type": "module", 4 | "scripts": { 5 | "dev": "vite", 6 | "build": "vite build" 7 | }, 8 | "devDependencies": { 9 | "autoprefixer": "^10.4.20", 10 | "axios": "^1.7.4", 11 | "laravel-vite-plugin": "^1.0", 12 | "postcss": "^8.4.45", 13 | "tailwindcss": "^3.4.10", 14 | "vite": "^5.0" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | tests/Unit 10 | 11 | 12 | tests/Feature 13 | 14 | 15 | 16 | 17 | app 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /public/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/public/.DS_Store -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews -Indexes 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Handle Authorization Header 9 | RewriteCond %{HTTP:Authorization} . 10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 11 | 12 | # Redirect Trailing Slashes If Not A Folder... 13 | RewriteCond %{REQUEST_FILENAME} !-d 14 | RewriteCond %{REQUEST_URI} (.+)/$ 15 | RewriteRule ^ %1 [L,R=301] 16 | 17 | # Send Requests To Front Controller... 18 | RewriteCond %{REQUEST_FILENAME} !-d 19 | RewriteCond %{REQUEST_FILENAME} !-f 20 | RewriteRule ^ index.php [L] 21 | 22 | -------------------------------------------------------------------------------- /public/css/style.css: -------------------------------------------------------------------------------- 1 | .overlay { 2 | position: absolute; 3 | top: 0; 4 | left: 0; 5 | width: 100%; 6 | height: 100%; 7 | background-color: rgba(0, 0, 0, 0.7); /* Adjust opacity as needed */ 8 | z-index: 1; 9 | } 10 | 11 | .hero { 12 | background-image: url("../images/hero.jpg"); 13 | } 14 | 15 | #map { 16 | width: 100%; 17 | height: 400px; 18 | z-index: 1; 19 | } 20 | 21 | #applicant-form { 22 | position: relative; 23 | z-index: 2; 24 | } 25 | 26 | [x-cloak] { 27 | display: none !important; 28 | } 29 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/public/favicon.ico -------------------------------------------------------------------------------- /public/images/hero.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/public/images/hero.jpg -------------------------------------------------------------------------------- /public/images/logos/logo-algorix.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/public/images/logos/logo-algorix.png -------------------------------------------------------------------------------- /public/images/logos/logo-bitwave.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/public/images/logos/logo-bitwave.png -------------------------------------------------------------------------------- /public/images/logos/logo-digital-media.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/public/images/logos/logo-digital-media.png -------------------------------------------------------------------------------- /public/images/logos/logo-nextgen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/public/images/logos/logo-nextgen.png -------------------------------------------------------------------------------- /public/images/logos/logo-pink-pig.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/public/images/logos/logo-pink-pig.png -------------------------------------------------------------------------------- /public/images/logos/logo-quantumcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/public/images/logos/logo-quantumcode.png -------------------------------------------------------------------------------- /public/images/logos/logo-shield.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/public/images/logos/logo-shield.png -------------------------------------------------------------------------------- /public/images/logos/logo-sparkle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/public/images/logos/logo-sparkle.png -------------------------------------------------------------------------------- /public/images/logos/logo-tec-solutions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/public/images/logos/logo-tec-solutions.png -------------------------------------------------------------------------------- /public/images/logos/logo-vencom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/public/images/logos/logo-vencom.png -------------------------------------------------------------------------------- /public/images/logos/logos.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/public/images/logos/logos.psd -------------------------------------------------------------------------------- /public/images/screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/public/images/screen.png -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | handleRequest(Request::capture()); 18 | -------------------------------------------------------------------------------- /public/js/script.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/public/js/script.js -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /resources/css/app.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | -------------------------------------------------------------------------------- /resources/js/app.js: -------------------------------------------------------------------------------- 1 | import './bootstrap'; 2 | -------------------------------------------------------------------------------- /resources/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | import axios from 'axios'; 2 | window.axios = axios; 3 | 4 | window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; 5 | -------------------------------------------------------------------------------- /resources/views/auth/login.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |

Login

4 |
5 | @csrf 6 | 7 | 8 | 9 | 13 | 14 |

15 | Don't have an account? 16 | Register 17 |

18 | 19 |
20 |
-------------------------------------------------------------------------------- /resources/views/auth/register.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |

Register

4 |
5 | @csrf 6 | 7 | 8 | 9 | 11 | 12 | 16 | 17 |

18 | Already have an account? 19 | Login 20 |

21 | 22 |
23 |
-------------------------------------------------------------------------------- /resources/views/components/alert.blade.php: -------------------------------------------------------------------------------- 1 | @props(['type', 'message', 'timeout' => '5000']) 2 | 3 | @if(session()->has($type)) 4 |
6 | {{$message}} 7 |
8 | @endif -------------------------------------------------------------------------------- /resources/views/components/bottom-banner.blade.php: -------------------------------------------------------------------------------- 1 | @props(['heading' => 'Looking to hire?', 'subheading' => 'Post your job listing now and find the perfect 2 | candidate.']) 3 | 4 |
5 |
6 |
7 |

{{$heading}}

8 |

9 | {{$subheading}} 10 |

11 |
12 | Create Job 13 |
14 |
-------------------------------------------------------------------------------- /resources/views/components/button-link.blade.php: -------------------------------------------------------------------------------- 1 | @props([ 2 | 'url' => '/', 3 | 'icon' => null, 4 | 'bgClass' => 'bg-yellow-500', 5 | 'hoverClass' => 'hover:bg-yellow-600', 6 | 'textClass' => 'text-black', 7 | 'block' => false 8 | ]) 9 | 10 | 12 | @if($icon) 13 | 14 | @endif 15 | {{$slot}} 16 | -------------------------------------------------------------------------------- /resources/views/components/header.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |

4 | Workopia 5 |

6 | 31 | 34 |
35 | 36 | 51 |
-------------------------------------------------------------------------------- /resources/views/components/hero.blade.php: -------------------------------------------------------------------------------- 1 | @props(['title' => 'Find Your Dream Job']) 2 | 3 |
4 |
5 |
6 |

7 | {{$title}} 8 |

9 | 10 | 11 |
12 |
-------------------------------------------------------------------------------- /resources/views/components/inputs/file.blade.php: -------------------------------------------------------------------------------- 1 | @props(['id', 'name', 'label' => null, 'required' => false]) 2 | 3 |
4 | @if($label) 5 | 6 | @endif 7 | 9 | @error($name) 10 |

{{$message}}

11 | @enderror 12 |
-------------------------------------------------------------------------------- /resources/views/components/inputs/select.blade.php: -------------------------------------------------------------------------------- 1 | @props(['id', 'name', 'label' => null, 'value' => '', 'options' => []]) 2 | 3 |
4 | @if($label) 5 | 6 | @endif 7 | 17 | @error($name) 18 |

{{$message}}

19 | @enderror 20 |
-------------------------------------------------------------------------------- /resources/views/components/inputs/text-area.blade.php: -------------------------------------------------------------------------------- 1 | @props(['id', 'name', 'label' => null, 'value' => '', 'placeholder' => '', 'rows' => '7', 'cols' => '30']) 2 | 3 |
4 | @if($label) 5 | 6 | @endif 7 | 10 | @error($name) 11 |

{{$message}}

12 | @enderror 13 |
-------------------------------------------------------------------------------- /resources/views/components/inputs/text.blade.php: -------------------------------------------------------------------------------- 1 | @props(['id', 'name', 'label' => null, 'type' => 'text', 'value' => '', 'placeholder' => '', 'required' => false]) 2 | 3 |
4 | @if($label) 5 | 6 | @endif 7 | 10 | @error($name) 11 |

{{$message}}

12 | @enderror 13 |
-------------------------------------------------------------------------------- /resources/views/components/job-card.blade.php: -------------------------------------------------------------------------------- 1 | @props(['job']) 2 | 3 |
4 |
5 | @if($job->company_logo) 6 | {{$job->company_name}} 7 | @endif 8 |
9 |

10 | {{$job->title}} 11 |

12 |

{{$job->job_type}}

13 |
14 |
15 |

16 | {{Str::limit($job->description, 100)}} 17 |

18 |
    19 |
  • Salary: ${{number_format($job->salary)}}
  • 20 |
  • 21 | Location: {{$job->city}}, {{$job->state}} 22 | @if($job->remote) 23 | Remote 24 | @else 25 | On-site 26 | @endif 27 |
  • 28 | @if($job->tags) 29 |
  • 30 | Tags: {{ucwords(str_replace(',', ', ', $job->tags))}} 31 |
  • 32 | @endif 33 |
34 | 36 | Details 37 | 38 |
-------------------------------------------------------------------------------- /resources/views/components/logout-button.blade.php: -------------------------------------------------------------------------------- 1 |
2 | @csrf 3 | 6 |
-------------------------------------------------------------------------------- /resources/views/components/nav-link.blade.php: -------------------------------------------------------------------------------- 1 | @props(['url' => '/', 'active' => false, 'icon' => null, 'mobile' => false]) 2 | 3 | @if($mobile) 4 | 5 | @if($icon) 6 | 7 | @endif 8 | {{$slot}} 9 | 10 | @else 11 | 12 | @if($icon) 13 | 14 | @endif 15 | {{$slot}} 16 | 17 | @endif -------------------------------------------------------------------------------- /resources/views/components/search.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 4 | 6 | 9 |
-------------------------------------------------------------------------------- /resources/views/components/top-banner.blade.php: -------------------------------------------------------------------------------- 1 | @props(['heading' => ' Unlock Your Career Potential', 'subheading' => 'Discover the perfect job opportunity for you.']) 2 | 3 |
4 |
5 |

6 | {{$heading}} 7 |

8 |

9 | {{$subheading}} 10 |

11 |
12 |
-------------------------------------------------------------------------------- /resources/views/dashboard/index.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 | {{-- Profile Info Form --}} 4 |
5 |

6 | Profile Info 7 |

8 | 9 | @if($user->avatar) 10 |
11 | {{$user->name}} 13 |
14 | @endif 15 | 16 |
17 | @csrf 18 | @method('PUT') 19 | 20 | 21 | 22 | 23 | 24 | 25 | 27 | 28 |
29 | 30 | {{-- Job Listings --}} 31 |
32 |

33 | My Job Listings 34 |

35 | @forelse($jobs as $job) 36 |
37 |
38 |

{{$job->title}}

39 |

{{$job->job_type}}

40 |
41 |
42 | Edit 43 | 44 |
46 | @csrf 47 | @method('DELETE') 48 | 51 |
52 | 53 |
54 |
55 | 56 | {{-- Applicants --}} 57 |
58 |

Applicants

59 | @forelse($job->applicants as $applicant) 60 |
61 |

62 | Name: {{$applicant->full_name}} 63 |

64 |

65 | Phone: {{$applicant->contact_phone}} 66 |

67 |

68 | Email: {{$applicant->contact_email}} 69 |

70 |

71 | Message: {{$applicant->message}} 72 |

73 |

74 | 76 | Download Resume 77 | 78 |

79 | {{-- Delete Applicant --}} 80 |
82 | @csrf 83 | @method('DELETE') 84 | 87 |
88 |
89 | @empty 90 |

No applicants for this job

91 | @endforelse 92 |
93 | @empty 94 |

You have not job listings

95 | @endforelse 96 |
97 |
98 | 99 |
-------------------------------------------------------------------------------- /resources/views/emails/job-applied.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Workopia Job Application 8 | 9 | 10 | 11 |

There has been a new job application to your Workopia listing.

12 | 13 |

Job Title: {{$job->title}}

14 | 15 |

Application Details:

16 | 17 |

Full Name: {{$application->full_name}}

18 |

Contact Phone: {{$application->contact_phone}}

19 |

Contact Email: {{$application->contact_email}}

20 |

Message: {{$application->message}}

21 |

Location: {{$application->location}}

22 | 23 |

Login to your Workopia account to view the application.

24 | 25 | 26 | -------------------------------------------------------------------------------- /resources/views/jobs/bookmarked.blade.php: -------------------------------------------------------------------------------- 1 | 2 |

3 | Bookmarked Jobs 4 |

5 |
6 | @forelse($bookmarks as $bookmark) 7 | 8 | @empty 9 |

You have no bookmarked jobs

10 | @endforelse 11 |
12 | 13 |
-------------------------------------------------------------------------------- /resources/views/jobs/create.blade.php: -------------------------------------------------------------------------------- 1 | 2 | Create Job 3 |
4 |

5 | Create Job Listing 6 |

7 |
8 | @csrf 9 |

10 | Job Info 11 |

12 | 13 | 14 | 15 | 17 | 18 | 19 | 20 | 22 | 23 | 25 | 26 | 27 | 29 | 30 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 |

44 | Company Info 45 |

46 | 47 | 48 | 49 | 51 | 52 | 54 | 55 | 56 | 57 | 59 | 60 |
68 |
-------------------------------------------------------------------------------- /resources/views/jobs/edit.blade.php: -------------------------------------------------------------------------------- 1 | 2 | Edit Job Listing 3 |
4 |

5 | Edit Job Listing 6 |

7 |
8 | @csrf 9 | @method('PUT') 10 |

11 | Job Info 12 |

13 | 14 | 16 | 17 | 20 | 21 | 23 | 24 | 26 | 27 | 29 | 30 | 31 | 33 | 34 | 36 | 37 | 39 | 40 | 42 | 43 | 44 | 45 | 46 | 47 | 49 | 50 |

51 | Company Info 52 |

53 | 54 | 56 | 57 | 59 | 60 | 62 | 63 | 65 | 66 | 68 | 69 |
77 |
-------------------------------------------------------------------------------- /resources/views/jobs/index.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 |
5 | 6 | {{-- Back button --}} 7 | @if(request()->has('keywords') || request()->has('location')) 8 | 10 | Back 11 | 12 | @endif 13 | 14 |
15 | @forelse($jobs as $job) 16 | 17 | @empty 18 |

No jobs available

19 | @endforelse 20 |
21 | 22 | {{-- Pagination Links --}} 23 | {{$jobs->links()}} 24 |
-------------------------------------------------------------------------------- /resources/views/jobs/show.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 |
6 | 7 | 8 | Back To Listings 9 | 10 | @can('update', $job) 11 |
12 | Edit 14 | 15 |
17 | @csrf 18 | @method('DELETE') 19 | 22 |
23 | 24 |
25 | @endcan 26 |
27 |
28 |

29 | {{$job->title}} 30 |

31 |

32 | {{$job->description}} 33 |

34 |
    35 |
  • 36 | Job Type: {{$job->job_type}} 37 |
  • 38 |
  • 39 | Remote: {{$job->remote ? 'Yes' : 'No'}} 40 |
  • 41 |
  • 42 | Salary: ${{number_format($job->salary)}} 43 |
  • 44 |
  • 45 | Site Location: {{$job->city}}, {{$job->state}} 46 |
  • 47 | @if($job->tags) 48 |
  • 49 | Tags: {{ucwords(str_replace(',', ', ', $job->tags))}} 50 |
  • 51 | @endif 52 |
53 |
54 |
55 | 56 |
57 | @if($job->requirements || $job->benefits) 58 |

Job Details

59 |
60 |

61 | Job Requirements 62 |

63 |

64 | {{$job->requirements}} 65 |

66 |

67 | Benefits 68 |

69 |

70 | {{$job->benefits}} 71 |

72 |
73 | @endif 74 | 75 | @auth 76 |

77 | Put "Job Application" as the subject of your email 78 | and attach your resume. 79 |

80 | 81 |
82 | 86 | 87 |
88 |
89 |

90 | Apply For {{$job->title}} 91 |

92 |
93 | @csrf 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 103 | 105 | 106 |
107 |
108 |
109 | @else 110 |

111 | You must be logged in to apply for this job 112 |

113 | @endauth 114 |
115 | 116 |
117 |
118 |
119 |
120 | 121 | 163 |
164 |
165 | 166 | 167 | 168 | -------------------------------------------------------------------------------- /resources/views/layout.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | @vite('resources/css/app.css') 11 | 12 | 13 | {{$title ?? 'Workopia | Find and list jobs'}} 14 | 15 | 16 | 17 | 18 | @if(request()->is('/')) 19 | 20 | 21 | @endif 22 |
23 | {{-- Display alert messages --}} 24 | @if(session('success')) 25 | 26 | @endif 27 | @if(session('error')) 28 | 29 | @endif 30 | {{$slot}} 31 |
32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /resources/views/pages/index.blade.php: -------------------------------------------------------------------------------- 1 | 2 |

Welcome To Workopia

3 |
4 | @forelse($jobs as $job) 5 | 6 | @empty 7 |

No jobs available

8 | @endforelse 9 |
10 | 11 | Show All Jobs 12 | 13 | 14 | 15 |
-------------------------------------------------------------------------------- /resources/views/vendor/pagination/bootstrap-4.blade.php: -------------------------------------------------------------------------------- 1 | @if ($paginator->hasPages()) 2 | 46 | @endif 47 | -------------------------------------------------------------------------------- /resources/views/vendor/pagination/bootstrap-5.blade.php: -------------------------------------------------------------------------------- 1 | @if ($paginator->hasPages()) 2 | 88 | @endif 89 | -------------------------------------------------------------------------------- /resources/views/vendor/pagination/default.blade.php: -------------------------------------------------------------------------------- 1 | @if ($paginator->hasPages()) 2 | 46 | @endif 47 | -------------------------------------------------------------------------------- /resources/views/vendor/pagination/semantic-ui.blade.php: -------------------------------------------------------------------------------- 1 | @if ($paginator->hasPages()) 2 | 36 | @endif 37 | -------------------------------------------------------------------------------- /resources/views/vendor/pagination/simple-bootstrap-4.blade.php: -------------------------------------------------------------------------------- 1 | @if ($paginator->hasPages()) 2 | 27 | @endif 28 | -------------------------------------------------------------------------------- /resources/views/vendor/pagination/simple-bootstrap-5.blade.php: -------------------------------------------------------------------------------- 1 | @if ($paginator->hasPages()) 2 | 29 | @endif 30 | -------------------------------------------------------------------------------- /resources/views/vendor/pagination/simple-default.blade.php: -------------------------------------------------------------------------------- 1 | @if ($paginator->hasPages()) 2 | 19 | @endif 20 | -------------------------------------------------------------------------------- /resources/views/vendor/pagination/simple-tailwind.blade.php: -------------------------------------------------------------------------------- 1 | @if ($paginator->hasPages()) 2 | 25 | @endif 26 | -------------------------------------------------------------------------------- /resources/views/vendor/pagination/tailwind.blade.php: -------------------------------------------------------------------------------- 1 | @if($paginator->hasPages()) 2 | 39 | @else 40 | 41 | @endif -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 8 | })->purpose('Display an inspiring quote')->hourly(); 9 | -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- 1 | name('home'); 16 | Route::get('/jobs/search', [JobController::class, 'search'])->name('jobs.search'); 17 | Route::resource('jobs', JobController::class)->middleware('auth')->only(['create', 'edit', 'update', 'destroy']); 18 | Route::resource('jobs', JobController::class)->except(['create', 'edit', 'update', 'destroy']); 19 | 20 | Route::middleware('guest')->group(function () { 21 | Route::get('/register', [RegisterController::class, 'register'])->name('register'); 22 | Route::post('/register', [RegisterController::class, 'store'])->name('register.store'); 23 | Route::get('/login', [LoginController::class, 'login'])->name('login'); 24 | Route::post('/login', [LoginController::class, 'authenticate'])->name('login.authenticate'); 25 | }); 26 | 27 | Route::post('/logout', [LoginController::class, 'logout'])->name('logout'); 28 | 29 | Route::get('/dashboard', [DashboardController::class, 'index'])->name('dashboard')->middleware('auth'); 30 | Route::put('/profile', [ProfileController::class, 'update'])->name('profile.update')->middleware('auth'); 31 | 32 | Route::middleware('auth')->group(function () { 33 | Route::get('/bookmarks', [BookmarkController::class, 'index'])->name('bookmarks.index'); 34 | Route::post('/bookmarks/{job}', [BookmarkController::class, 'store'])->name('bookmarks.store'); 35 | Route::delete('/bookmarks/{job}', [BookmarkController::class, 'destroy'])->name('bookmarks.destroy'); 36 | }); 37 | 38 | Route::post('/jobs/{job}/apply', [ApplicantController::class, 'store'])->name('applicant.store')->middleware('auth'); 39 | Route::delete('/applicants/{applicant}', [ApplicantController::class, 'destroy'])->name('applicant.destroy')->middleware('auth'); 40 | 41 | Route::get('/geocode', [GeocodeController::class, 'geocode']); 42 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/app/public/avatars/OkN9SVc5zdTsaWcaG0bM312gkHEePc0PtGPK4op0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/avatars/OkN9SVc5zdTsaWcaG0bM312gkHEePc0PtGPK4op0.jpg -------------------------------------------------------------------------------- /storage/app/public/avatars/WiOWwM95W5lsaPhv5UhYCLfXy2c6PDIGZuvqQStG.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/avatars/WiOWwM95W5lsaPhv5UhYCLfXy2c6PDIGZuvqQStG.jpg -------------------------------------------------------------------------------- /storage/app/public/avatars/default-avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/avatars/default-avatar.png -------------------------------------------------------------------------------- /storage/app/public/avatars/eddYUMjw0De9RCrpH9YU003BVUpzqEtJievGakrU.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/avatars/eddYUMjw0De9RCrpH9YU003BVUpzqEtJievGakrU.jpg -------------------------------------------------------------------------------- /storage/app/public/logos/8RcUlkmxJjXinPTfCzezE8mrAANdh33ErUflxD9K.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/logos/8RcUlkmxJjXinPTfCzezE8mrAANdh33ErUflxD9K.png -------------------------------------------------------------------------------- /storage/app/public/logos/BKFdIXoacajQhfk1NHDGCoNnyBzSXzW38JPXLg42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/logos/BKFdIXoacajQhfk1NHDGCoNnyBzSXzW38JPXLg42.png -------------------------------------------------------------------------------- /storage/app/public/logos/LCYGNDi5dUBrUTlfPZGj3csmjMwIqbfN0hpygJuR.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/logos/LCYGNDi5dUBrUTlfPZGj3csmjMwIqbfN0hpygJuR.png -------------------------------------------------------------------------------- /storage/app/public/logos/logo-algorix.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/logos/logo-algorix.png -------------------------------------------------------------------------------- /storage/app/public/logos/logo-bitwave.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/logos/logo-bitwave.png -------------------------------------------------------------------------------- /storage/app/public/logos/logo-digital-media.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/logos/logo-digital-media.png -------------------------------------------------------------------------------- /storage/app/public/logos/logo-nextgen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/logos/logo-nextgen.png -------------------------------------------------------------------------------- /storage/app/public/logos/logo-pink-pig.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/logos/logo-pink-pig.png -------------------------------------------------------------------------------- /storage/app/public/logos/logo-quantumcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/logos/logo-quantumcode.png -------------------------------------------------------------------------------- /storage/app/public/logos/logo-shield.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/logos/logo-shield.png -------------------------------------------------------------------------------- /storage/app/public/logos/logo-sparkle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/logos/logo-sparkle.png -------------------------------------------------------------------------------- /storage/app/public/logos/logo-tec-solutions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/logos/logo-tec-solutions.png -------------------------------------------------------------------------------- /storage/app/public/logos/logo-vencom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/logos/logo-vencom.png -------------------------------------------------------------------------------- /storage/app/public/logos/n2L0rnB51Iw4Vvp8WYBLi22aAQvkPFHgEgWuqTSs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/logos/n2L0rnB51Iw4Vvp8WYBLi22aAQvkPFHgEgWuqTSs.png -------------------------------------------------------------------------------- /storage/app/public/resumes/3TzIiBR3PDnGY0VhgAq5ZXbCQwb6q0euB25xOyDd.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/resumes/3TzIiBR3PDnGY0VhgAq5ZXbCQwb6q0euB25xOyDd.pdf -------------------------------------------------------------------------------- /storage/app/public/resumes/7F5vcwmHDo41Z9p0iOIxnn0nDAnfSM0iykeB20e3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/resumes/7F5vcwmHDo41Z9p0iOIxnn0nDAnfSM0iykeB20e3.pdf -------------------------------------------------------------------------------- /storage/app/public/resumes/93K9WFLAJ0j2UQNbYpUtyejtWzSD3ya3JjRJhecv.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/resumes/93K9WFLAJ0j2UQNbYpUtyejtWzSD3ya3JjRJhecv.pdf -------------------------------------------------------------------------------- /storage/app/public/resumes/LrtoqgDdoCgDk4mYmr6GapzARP5CfLqj9fZjkdi4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/resumes/LrtoqgDdoCgDk4mYmr6GapzARP5CfLqj9fZjkdi4.pdf -------------------------------------------------------------------------------- /storage/app/public/resumes/XDJimgtfgUthXrdhD5IVH1ZwxkOVHqSFb71evoOA.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/resumes/XDJimgtfgUthXrdhD5IVH1ZwxkOVHqSFb71evoOA.pdf -------------------------------------------------------------------------------- /storage/app/public/resumes/XxwMerVnDlLZkbnmAmj6XRMH4pKwlKyWswMKBkB8.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/resumes/XxwMerVnDlLZkbnmAmj6XRMH4pKwlKyWswMKBkB8.pdf -------------------------------------------------------------------------------- /storage/app/public/resumes/lGHyE9rmwUBwYcBvvOKMojtW4eOQZ8264aGDTkCk.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/resumes/lGHyE9rmwUBwYcBvvOKMojtW4eOQZ8264aGDTkCk.pdf -------------------------------------------------------------------------------- /storage/app/public/resumes/n42l6ugZp92OZcSIv9D8n9XkXcEhoF82LhN9zOXW.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/resumes/n42l6ugZp92OZcSIv9D8n9XkXcEhoF82LhN9zOXW.pdf -------------------------------------------------------------------------------- /storage/app/public/resumes/nyY91fwL9WqQsIBo3CsuF5fTEkouGAMCpjLxMl44.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/resumes/nyY91fwL9WqQsIBo3CsuF5fTEkouGAMCpjLxMl44.pdf -------------------------------------------------------------------------------- /storage/app/public/resumes/vfJTz2m86HsmEVuAtkE3LL3SFkmgW3GsuHuxJbn3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/workopia-laravel/61f9007094370d0bafa7855486b44e9782741abb/storage/app/public/resumes/vfJTz2m86HsmEVuAtkE3LL3SFkmgW3GsuHuxJbn3.pdf -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('tailwindcss').Config} */ 2 | export default { 3 | content: [ 4 | "./resources/**/*.blade.php", 5 | "./resources/**/*.js", 6 | "./resources/**/*.vue", 7 | ], 8 | theme: { 9 | extend: {}, 10 | }, 11 | plugins: [], 12 | }; 13 | -------------------------------------------------------------------------------- /tests/Feature/ExampleTest.php: -------------------------------------------------------------------------------- 1 | get('/'); 16 | 17 | $response->assertStatus(200); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite'; 2 | import laravel from 'laravel-vite-plugin'; 3 | 4 | export default defineConfig({ 5 | plugins: [ 6 | laravel({ 7 | input: ['resources/css/app.css', 'resources/js/app.js'], 8 | refresh: true, 9 | }), 10 | ], 11 | }); 12 | --------------------------------------------------------------------------------