In Laravel 5.7 a new feature was added to allow you to ask your users for https://laravel.com/docs/5.7/verification before they're allowed to access anything inside the auth middleware. This is a nice little feature to make sure that your users are real users. With the introduction of Laravel Nova it allows you to manage different resources for your application such as users. One of the features with Laravel Nova is https://nova.laravel.com/docs/1.0/lenses/registering-lenses.html#authorization, these allow you to create a new view for your resource.

* * @param \Illuminate\Http\Request $request * @return array */ public function fields(Request $request) { return [ ID::make('ID', 'id')->sortable(), Text::make('Name') ->sortable(), Text::make('Email') ->sortable(), DateTime::make('created_at'), ]; } https://paulund.co.uk/creating-a-laravel-nova-unverified-lense#register-your-lenseThen you need to register the lense in your User resource, by adding the class to the lenses method.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners