Answers for "Nova Login restriction"

0

Nova Login restriction

/**
 * Register the Nova gate.
 *
 * This gate determines who can access Nova in non-local environments.
 *
 * @return void
 */
protected function gate()
{
    Gate::define('viewNova', function ($user) {
        return $user->hasAnyRole(['Admin', 'Content Editor']);
    });
}
Posted by: Guest on April-06-2022

Code answers related to "Nova Login restriction"

Browse Popular Code Answers by Language