class Illuminate / Foundation / Console / ResourceMakeCommand

ResourceMakeCommand

Extends

Properties

protected

$name string

The console command name.

Default: 'make:resource'
protected

$description string

The console command description.

Default: 'Create a new resource'
protected

$type string

The type of class being generated.

Default: 'Resource'

Methods

public

handle ( ) : void

Execute the console command.

protected

getStub ( ) : string

Get the stub file for the generator.

protected

collection ( ) : bool

Determine if the command is generating a resource collection.

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 options.