Closed jcandan closed 1 year ago
The following exception occurs:
file_get_contents(/app/vendor/leandrocfe/filament-apex-charts/src/CommandsLine.stub): Failed to open stream: No such file or directory
Within a Linux container, run php artisan make:filament-apex-charts BlogPostsChart.
php artisan make:filament-apex-charts BlogPostsChart
It is my understanding that Windows supports forward slashes.
Update getStubPath to use forward slashes:
getStubPath
$path = Str::of(__DIR__) ->replace('src/Commands', 'stubs/')
If this does not work on Windows, then this works too:
$path = Str::of(__DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'stubs'.DIRECTORY_SEPARATOR)
Though, judging by FortifyServiceProvider.php, this seems like the way to go:
$path = Str::of(__DIR__.'../../stubs/')
Thank you. Fixed: https://github.com/leandrocfe/filament-apex-charts/releases/tag/0.1.2
Problem
The following exception occurs:
Steps to reproduce
Within a Linux container, run
php artisan make:filament-apex-charts BlogPostsChart
.Proposed resolution
It is my understanding that Windows supports forward slashes.
Update
getStubPath
to use forward slashes:If this does not work on Windows, then this works too:
Though, judging by FortifyServiceProvider.php, this seems like the way to go: