This is a template for a Laravel and React application. Best to understand for Next.js Developers. If you're still struggling follow along:
After you created the repository from this template you need to install the dependencies for the Laravel and React application.
composer install
npm install # or yarn, pnpm, ...
To start the development server for the Laravel application you can use the following command:
php artisan serve
And in a different terminal window the vite server for the React application:
npm run dev
Just copy the .env.example
file to .env
and fill in the necessary environment variables.
The React application is located in the resources/js
directory. You can start developing your React application there.
For deployment, you should read the official documentation from Laravel.
Run the following command to fix the code style:
npm run format