diff --git a/src/Commands/LaravelAuthorizerCommand.php b/src/Commands/LaravelAuthorizerCommand.php index f2f3d8c..79b5af8 100644 --- a/src/Commands/LaravelAuthorizerCommand.php +++ b/src/Commands/LaravelAuthorizerCommand.php @@ -163,7 +163,7 @@ public function getNamespace(): string /** * Get the class name for the policy. * - * @param string $name The name of the policy + * @param string $name The name of the policy */ public function getClassName(string $name): string { @@ -177,7 +177,7 @@ public function getClassName(string $name): string /** * Get the namespace for the model. * - * @param string $model The name of the model + * @param string $model The name of the model */ public function getNamespacedModel(string $model): string { diff --git a/src/Commands/stubs/policy.user.stub b/src/Commands/stubs/policy.user.stub index 36f1920..edf0076 100644 --- a/src/Commands/stubs/policy.user.stub +++ b/src/Commands/stubs/policy.user.stub @@ -28,9 +28,9 @@ class {{ class }} * @param {{ model }} $model * @return Response|bool */ - public function view({{ user }} $user, {{ userModel }} $model): bool + public function view({{ user }} $user, {{ model }} $model): bool { - return $user->can('view {{ modelSingularLowerCase }}', $model) + return $user->can('view {{ modelSingularLowerCase }}', $model); } /**