Skip to content

Commit

Permalink
Update MakeFilamentResourceCommand.php
Browse files Browse the repository at this point in the history
  • Loading branch information
lordjoo authored Feb 28, 2023
1 parent 55de999 commit 2a9ff71
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/MakeFilamentResourceCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

class MakeFilamentResourceCommand extends MakeResourceCommand
{
use \Filament\Commands\Concerns\CanGenerateResources;
use Concerns\CanIndentStrings;
use Concerns\CanManipulateFiles;
use Concerns\CanValidateInput;
Expand Down Expand Up @@ -211,7 +210,7 @@ public function getBaseResourcePath($resource)
return base_path(
(string) Str::of($resource)
->prepend($module.'\\Filament\\Resources\\')
->replace('\\', '/'),
->replace('\\', '/')->replace(base_path(), ''),
);
}

Expand Down

0 comments on commit 2a9ff71

Please sign in to comment.