laravel server 403 forbidden code example
Example: laravel telescope 403 forbidden
/**
* Register the Telescope gate.
*
* This gate determines who can access Telescope in non-local environments.
*
* @return void
*/
protected function gate()
{
Gate::define('viewTelescope', function ($user) {
return in_array($user->email, [
// Your users
'[email protected]',
]);
});
}