add nova
This commit is contained in:
19
nova/src/Console/ResolvesStubPath.php
Normal file
19
nova/src/Console/ResolvesStubPath.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user