make:observer

Create a new observer class

Options

  • force - Create the class even if the observer already exists Optional
  • model - The model that the observer applies to Optional

Arguments

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