class
Illuminate
/
Foundation
/
Console
/
PolicyMakeCommand
You are viewing an older version of the documentation. For the latest, please visit master documentation.
PolicyMakeCommand
Extends
Properties
protected
$name string
The console command name.
Default: 'make:policy'
protected
$description string
The console command description.
Default: 'Create a new policy class'
protected
$type string
The type of class being generated.
Default: 'Policy'
Methods
protected
buildClass ( $name ) : string
Build the class with the given name.
Parameters
- $name string
protected
replaceUserNamespace ( $stub ) : string
Replace the User model namespace.
Parameters
- $stub string
protected
userProviderModel ( ) : string|null
Get the model for the guard's user provider.
protected
replaceModel ( $stub , $model ) : string
Replace the model for the given stub.
Parameters
- $stub string
- $model string
protected
getStub ( ) : string
Get the stub file for the generator.
protected
resolveStubPath ( $stub ) : string
Resolve the fully-qualified path to the stub.
Parameters
- $stub string
protected
getDefaultNamespace ( $rootNamespace ) : string
Get the default namespace for the class.
Parameters
- $rootNamespace string
protected
getOptions ( ) : array
Get the console command arguments.