This project is a simple Laravel CRUD for Tasks model built on top of Laravel Breeze starter kit Inertia (React) version.
Installation
Follow these steps to set up the project locally:
-
Clone the repository:
git clone https://github.com/LaravelDaily/CRUDs-Laravel-React-Inertia.git projectcd project -
Install dependencies:
composer installnpm install && npm run build -
Copy the
.env
file and configure your environment variables:cp .env.example .env -
Generate the application key:
php artisan key:generate -
Set up the database:
- Update
.env
with your database credentials. - Run migrations and seed the database, repo includes fake tasks:
php artisan migrate --seed
- Update
-
If you use Laravel Herd/Valet, access the application at
http://project.test
. -
Log in with credentials:
[email protected]
andpassword
.
Features to Pay Attention To
This project goes beyond the default Laravel Breeze setup with the following enhancements.
- Return Types in the Controller: ex.
function destroy(Task $task): RedirectResponse
- Utilizes Form Request classes for validation, with
$request->validated()
then used in the Controller - ...