Skip to content

Commit

Permalink
fix issue with case in authorizeResource (#18435)
Browse files Browse the repository at this point in the history
  • Loading branch information
devcircus authored and taylorotwell committed Mar 20, 2017
1 parent 3164f97 commit 3f693da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ protected function normalizeGuessedAbilityName($ability)
*/
public function authorizeResource($model, $parameter = null, array $options = [], $request = null)
{
$parameter = $parameter ?: strtolower(class_basename($model));
$parameter = $parameter ?: lcfirst(class_basename($model));

$middleware = [];

Expand Down

0 comments on commit 3f693da

Please sign in to comment.