Check out history.md for how I bootstrapped this project
return Inertia::view
instead of the classic return view('template/path')
breeze-react/app/Http/Controllers/ProfileController.php
return Inertia::render('Profile/Edit'
breeze-react/resources/js/Pages/Profile/Edit.jsx
Install vendor packages with
docker run --rm --pull=always -v "$(pwd)":/opt -w /opt laravelsail/php83-composer:latest bash -c "composer install"
Make sure you're in the right directory - cd breeze-react
Run the following - cp .env.example .env
and make updates accordingly
APP_KEY
is required to boot Laravel. You can run ./vendor/bin/sail artisan key:generate
to generate itRun ./vendor/bin/sail up
Run ./vendor/bin/sail artisan migrate
Run ./vendor/bin/sail npm run dev
in another terminal window
By default, the site's url is http://localhost
By default, the site's url is http://0.0.0.0/
sail up
will essentially run the site in production mode. If you want Hot Module Replacement, you will also need to
run ./vendor/bin/sail npm run dev
in another terminal window
./vendor/bin/sail php ./vendor/bin/pest
. Remember to have ./vendor/bin/sail up
running in another terminal. Refer to the documentation here - https://pestphp.com/docs/writing-tests
./vendor/bin/sail php artisan test
php artisan test
./vendor/bin/sail up
if not../vendor/bin/sail composer require laravel/pint --dev
http://0.0.0.0/
and nothing loads
sail up
will expose http://0.0.0.0/
, but after running sail npm run dev
this address ceases to work
properly. Leading to some confusion. Be sure to try http://localhost
, but more specifically, pay attention to
the address that's in your second terminal when running ./vendor/bin/sail npm run dev