$ php artisan changes
$ php artisan --version
$ php artisan route:list
$ php artisan tinker
> $cat = 'Garfield';
> App\Cat::create(['name' => $cat,'date_of_birth' => new DateTime]);
> echo App\Cat::whereName($cat)->get();
[{"id":"4","name":"Garfield 2","date_of_birth":…}]
> dd(Config::get('database.default'));
Turning the engine off
$ php artisan down
Turning the engine on
$ php artisan up
Optimising and speeding up the application
$ php artisan optimize
Pre-compiling the routes for faster application
$ php artisan route:cache
$ php artisan --version
$ php artisan route:list
$ php artisan tinker
> $cat = 'Garfield';
> App\Cat::create(['name' => $cat,'date_of_birth' => new DateTime]);
> echo App\Cat::whereName($cat)->get();
[{"id":"4","name":"Garfield 2","date_of_birth":…}]
> dd(Config::get('database.default'));
Turning the engine off
$ php artisan down
Turning the engine on
$ php artisan up
Optimising and speeding up the application
$ php artisan optimize
Pre-compiling the routes for faster application
$ php artisan route:cache
Generators
• make:command
• make:console
• make:controller
• make:event
• make:middleware
• make:migration
• make:model
• make:provider
• make:request
php artisan make:model Cat
php artisan make:model Cat --no-migration
php artisan make:command --help
No comments:
Post a Comment