Skip to content

Commit

Permalink
Updating the Authorization Service Provider
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanedev-maroc committed Feb 9, 2017
1 parent a5824bc commit ed2250e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Providers/AuthorizationServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php namespace Arcanedev\Support\Providers;

use Illuminate\Foundation\Support\Providers\AuthServiceProvider;
use Illuminate\Support\Facades\Gate;

/**
* Class AuthorizationServiceProvider
Expand All @@ -17,14 +18,13 @@ class AuthorizationServiceProvider extends AuthServiceProvider
/**
* Define policies.
*
* @param \Illuminate\Contracts\Auth\Access\Gate $gate
* @param string $class
* @param array $policies
* @param string $class
* @param array $policies
*/
protected function defineMany($gate, $class, array $policies)
protected function defineMany($class, array $policies)
{
foreach ($policies as $method => $ability) {
$gate->define($ability, "$class@$method");
Gate::define($ability, "$class@$method");
}
}
}

0 comments on commit ed2250e

Please sign in to comment.