This is a draft cheat sheet. It is a work in progress and is not finished yet.
Artisan
php artisan make:model -m ModelName |
php artisan make:controller FoobarController |
php artisan make:test SomeFeatureTest |
php artisan make:test --unit SomeUnitTest |
Paginate result
{
"current_page": 1,
"data": [],
"first_page_url": "http://foo.bar/model?page=1",
"from": 1,
"last_page": 5,
"last_page_url": "http://foo.bar/model?page=5",
"next_page_url": "http://foo.bar/model?page=2",
"path": "http://foo.bar/model",
"per_page": 25,
"prev_page_url": null,
"to": 25,
"total": 111
}
|
|
|
Update and reload composer
//ensure you have the lastest version of composer |
composer self-update |
//regen your class maps |
composer dump-autoload |
// Remove compiled services & packages |
php artisan clear-compiled |
|