Skip to content

Commit 621c90c

Browse files
authored
Merge pull request #18 from flixtechs-labs/dev
fix: variables in stubs
2 parents 7fb94b2 + e7a7874 commit 621c90c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Commands/LaravelAuthorizerCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function getNamespace(): string
163163
/**
164164
* Get the class name for the policy.
165165
*
166-
* @param string $name The name of the policy
166+
* @param string $name The name of the policy
167167
*/
168168
public function getClassName(string $name): string
169169
{
@@ -177,7 +177,7 @@ public function getClassName(string $name): string
177177
/**
178178
* Get the namespace for the model.
179179
*
180-
* @param string $model The name of the model
180+
* @param string $model The name of the model
181181
*/
182182
public function getNamespacedModel(string $model): string
183183
{

src/Commands/stubs/policy.user.stub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ class {{ class }}
2828
* @param {{ model }} $model
2929
* @return Response|bool
3030
*/
31-
public function view({{ user }} $user, {{ userModel }} $model): bool
31+
public function view({{ user }} $user, {{ model }} $model): bool
3232
{
33-
return $user->can('view {{ modelSingularLowerCase }}', $model)
33+
return $user->can('view {{ modelSingularLowerCase }}', $model);
3434
}
3535

3636
/**

0 commit comments

Comments
 (0)