Skip to content

Commit

Permalink
Fix policy path in EnumPermissionCommand for correct directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
tharindarodrigo committed Dec 31, 2024
1 parent 1ae9e49 commit ad2ba81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/EnumPermissionCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ protected function generatePolicy($model, $permissionNamespace): void
$policy
);

$policyPath = app_path('App/Policies/'.$policyName.'.php');
$policyPath = app_path('Policies/'.$policyName.'.php');
File::ensureDirectoryExists(dirname($policyPath));

if (File::exists($policyPath)) {
Expand Down

0 comments on commit ad2ba81

Please sign in to comment.