Simple CRUD operation with Laravel 10.
- Clone this repository to your root directory.
- Open terminal,
cd
to your project directory and typecomposer install
to install dependencies. - Copy
.env.example
to.env
- Generate application key:
php artisan key:generate
- Update
DB_
values in.env
file according to your local setup. - Create database
crud_laravel
. - Run migration file to migrate db tables:
php artisan migrate
- Open terminal,
cd
to your project directory and typephp artisan tinker
. - Type:
Project::factory()->count(20)->create();
and press enter.- This will create 20 rows of data to
projects
table.
- This will create 20 rows of data to