for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanesoft\Foundation\Policies;
use Arcanesoft\Contracts\Auth\Models\User;
/**
* Class RouteViewerPolicy
*
* @package Arcanesoft\Foundation\Policies
* @author ARCANEDEV <[email protected]>
*/
class RouteViewerPolicy extends AbstractPolicy
{
/* -----------------------------------------------------------------
| Constants
| -----------------------------------------------------------------
const PERMISSION_LIST = 'foundation.routeviewer.list';
| Abilities
* Allow to list all the routes.
* @param \Arcanesoft\Contracts\Auth\Models\User $user
* @return bool
public function listPolicy(User $user)
return $user->may(static::PERMISSION_LIST);
}