make:cast

Create a new custom Eloquent cast class

Options

  • force - Create the class even if the cast already exists Optional
  • inbound - Generate an inbound cast class Optional

Arguments

  • name - The name of the cast Required
php artisan make:cast [-f|--force] [--inbound] [--] <name>