use Illuminate\Database\Eloquent\ModelNotFoundException;
6
use Throwable;
7
8
class BlogEtcAuthGateNotImplementedException extends ModelNotFoundException
9
{
10
public function __construct($_ = '', $code = 0, Throwable $previous = null)
11
{
12
parent::__construct('You must implement your own gate in AuthServiceProvider for the \WebDevEtc\BlogEtc\Gates\GateTypes::MANAGE_ADMIN gate.', $code, $previous);
13
14
// Add something like the following to AuthServiceProvider:
15
16
// Gate::define(GateTypes::MANAGE_BLOG_ADMIN, static function (?Model $user) {
17
// Implement your logic to allow or disallow admin access for $user