So I recently decided to try the command
php artisan make:auth
instead of creating all of the auth myself, it seemed to work and I continued on with my app. However now I am at the point in my app where I do not want a public facing register page (I want this to be admin only to add new users). However the command does not insert individual routes or functions, it is something built into laravel. So normally I could just use
$this->middleware('auth');
inside of the controller that handled the register, but since that is the same controller as the login it causes problems....Does anyone know a way to keep the register page created by php artisan make:auth behind the login wall so only admins can register new users?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire