1 | <?php namespace Arcanesoft\Auth\Http\Routes\Admin; |
||
13 | class PermissionsRoutes extends RouteRegistrar |
||
14 | { |
||
15 | /* ----------------------------------------------------------------- |
||
16 | | Main Methods |
||
17 | | ----------------------------------------------------------------- |
||
18 | */ |
||
19 | /** |
||
20 | * Register the bindings. |
||
21 | */ |
||
22 | 15 | public static function bindings() |
|
23 | { |
||
24 | 15 | $registrar = new static; |
|
25 | |||
26 | 15 | $registrar->bind('auth_permission', function($hashedId) { |
|
27 | return Permission::firstHashedOrFail($hashedId); |
||
28 | 15 | }); |
|
29 | |||
30 | 15 | $registrar->bind('auth_permissions_group', function($hashedId) { |
|
31 | return PermissionsGroup::firstHashedOrFail($hashedId); |
||
32 | 15 | }); |
|
33 | 15 | } |
|
34 | |||
35 | /** |
||
36 | * Map routes. |
||
37 | */ |
||
38 | public function map() |
||
57 | } |
||
58 |