Files
online.tbbank.gov.tm-larave…/nova/src/Console/ResolvesStubPath.php
2024-09-01 18:54:23 +05:00

20 lines
418 B
PHP

<?php
namespace Laravel\Nova\Console;
trait ResolvesStubPath
{
/**
* Resolve the fully-qualified path to the stub.
*
* @param string $stub
* @return string
*/
protected function resolveStubPath($stub)
{
return file_exists($customPath = $this->laravel->basePath(trim($stub, '/')))
? $customPath
: __DIR__.str_replace('nova/', '', $stub);
}
}