I am working on a Laravel 5.5 application. When I use php artisan make:model SomeModel -mr
it creates the model, migration and resource controller.
I've been noticed that some methods have by default only one parameter: the model:
public function show(SomeModel $someModel)
{
...
}
If you look into the $someModel
variable it has an empty SomeModel object.
I was reading on Laravel Documentation that it looks like the Containers or Facades but I am not sure how to use this. Do you?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire