Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 607 Bytes

README.md

File metadata and controls

40 lines (32 loc) · 607 Bytes

laravel-app-sample

create model

php artisan make:model User --migration
php artisan migrate

insert model test

php artisan tinker
App\User::all();
App\User::create(['name'=>'example','email'=>'[email protected]','password'=>'example']);

create fake models

php artisan make:factory UserFactory
php artisan make:seeder UserSeeder

create api controller

php artisan make:controller Api/UsersController

create resource class

php artisan make:resource UserResource

create request

php artisan make:request UserRequest