The Laravel Artisan Cheatsheet now has an API. Learn more.

make:observer

Create a new observer class

Options

  • model - The model that the observer applies to. Optional

Arguments

  • name - The name of the class Required
php artisan make:observer [-m|--model [MODEL]] [--] <name>