for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace jeremykenedy\LaravelRoles\App\Exceptions;
class RoleDeniedException extends AccessDeniedException
{
/**
* Create a new role denied exception instance.
*
* @param string $role
*/
public function __construct($role)
$this->message = sprintf("You don't have a required ['%s'] role.", $role);
}