mardi 3 novembre 2015

Headstart needed for re-using the register functionality in Laravel 5.0

I am building a Laravel 5.0 project. With this the admin section is only accessible for registered users. I have added for example a user type to the User model and want to create and edit users using an admin module instead of the standard registration form in /auth/register.

But I cannot seem to find how to disable /auth/register for the outside world, but also cannot create my own CRUD for managing users.

So my main two questions are:

  • How can I reuse the password encryption in my own create and update functionality
  • How can I disable /auth/register for the not logged in users?

Thanx in advance



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire