\App\Console\CommandsCreatePlugin

Class for creating plugin by running the artisan make:plugin command.

Class CreatePlugin

Summary

Methods
Properties
Constants
__construct()
handle()
getPluginStub()
No public properties found
No constants found
getStubs()
buildPluginClass()
$signature
$description
N/A
No private methods found
No private properties found
N/A

Properties

$signature

$signature : string

The name and signature of the console command.

Type

string

$description

$description : string

The console command description.

Type

string

Methods

__construct()

__construct(\Illuminate\Filesystem\Filesystem  $files) 

Parameters

\Illuminate\Filesystem\Filesystem $files

handle()

handle() : mixed

Execute the console command.

Returns

mixed

getPluginStub()

getPluginStub() : string

Fetch stub for plugin main class.

Returns

string

getStubs()

getStubs() : array

Fetch all other stubs for creating plugin.

Returns

array

buildPluginClass()

buildPluginClass(string  $name, string  $stub) : mixed

Create the class content for the main class.

Parameters

string $name
string $stub

Returns

mixed