Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 2, 2017
1 parent 7902ecc commit 5069e7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Foundation/Console/PolicyMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ protected function replaceModel($stub, $model)
);

$model = class_basename(trim($model, '\\'));
$dummyModel = Str::camel($model) === 'user' ? 'model' : Str::camel($model);

$dummyUser = class_basename(config('auth.providers.users.model'));

$dummyModel = Str::camel($model) === 'user' ? 'model' : Str::camel($model);

$stub = str_replace('DummyModel', $model, $stub);

$stub = str_replace('dummyModel', $dummyModel, $stub);
Expand Down

0 comments on commit 5069e7a

Please sign in to comment.