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

make:scope

Create a new scope class

Options

  • force - Create the class even if the scope already exists Optional

Arguments

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