Skip to content

valbeat-sandbox/Laravel-app-sample

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages