class MakePanelCommand extends Command (View source)

Traits

Properties

protected $description
protected $signature

Methods

bool
checkForCollision(array $paths)

No description

void
copyStubToApp(string $stub, string $targetPath, array $replacements = [])

No description

bool
fileExists(string $path)

No description

void
writeFile(string $path, string $contents)

No description

string
getDefaultStubPath()

We need to override this method as the panel provider stubs are part of the support package, not panels.

bool
generatePanel(string|null $id = null, string $default = '', string $placeholder = '', bool $force = false)

No description

int
handle()

No description

Details

protected bool checkForCollision(array $paths)

No description

Parameters

array $paths

Return Value

bool

protected void copyStubToApp(string $stub, string $targetPath, array $replacements = [])

No description

Parameters

string $stub
string $targetPath
array $replacements

Return Value

void

protected bool fileExists(string $path)

No description

Parameters

string $path

Return Value

bool

protected void writeFile(string $path, string $contents)

No description

Parameters

string $path
string $contents

Return Value

void

protected string getDefaultStubPath()

We need to override this method as the panel provider stubs are part of the support package, not panels.

Return Value

string

bool generatePanel(string|null $id = null, string $default = '', string $placeholder = '', bool $force = false)

No description

Parameters

string|null $id
string $default
string $placeholder
bool $force

Return Value

bool

int handle()

No description

Return Value

int