In this episode, we kick things off by setting up a brand new Laravel project, calling it "laravel file marketplace". We walk through each step, starting from creating the project using the Laravel installer, opening it up in our editor, and then setting up authentication using Laravel Breeze – Laravel's own lightweight scaffolding package.
You'll see how to install Breeze, select the right options for Blade and Livewire, and opt out of dark mode and Pest (for testing) for now. Then we tweak our environment settings to hook up to a Postgres database (but MySQL would work too), run the migrations, and get NPM up and compiling our assets so everything is ready for the frontend.
We then customize our home route to use a HomeController
instead of the default welcome page, create a new home view, and replace the old template with a simple Tailwind-styled message to mark our app. You’ll see how Breeze provides guest and authenticated layouts right out of the box, making it really easy to put together a clean home page and registration flow.
Finally, we do a quick run-through of registering a new user to make sure everything is working as expected. When it's all said and done, we've got registration, login, logout, and a dashboard – all scaffolded and ready to build on. If you're starting fresh with Laravel and want to get the essentials set up quickly, this episode is exactly what you need!