Laravel-admin: Help-me please. User register!!!!!

Created on 31 Aug 2018  ·  4Comments  ·  Source: z-song/laravel-admin

php artisan admin:install

This has already been done, but only the screen appears for the user to log in. This is not what I want, I need an option so that the user who does not have a login can register to the portal.

I have a lot of difficulties, and there is little information on that. I can not find solutions and I'm stagnant without being able to continue with my project. I need a lot of help. Please.

login

wontfix

Most helpful comment

default username : admin or password:admin
if you need register , please custom you routes in app/Admin/Controllers/routes.php and create you register code model and Controllers

All 4 comments

While I'm just a random passerby and haven't really even touched Laravel much or this. I think this is something you have to handle in your UserController class, essentially you should add a route that the controller should redirect to in case the user does not have an account. Sorry for not being much help.

default username : admin or password:admin
if you need register , please custom you routes in app/Admin/Controllers/routes.php and create you register code model and Controllers

you can pass login auth if you dont use laravel admin's middleware.
and you need to make signup page yourself.

// no login auth
//you can see this URL without login auth
//http://test.com/signup
Route::group([
'namespace' => config('admin.route.namespace')
], function (Router $router) {
$router->resource('signup', SignUpController::class);
});

//or
//you can see this URL without login auth
//http://test.com/admin/signup
Route::group([
'prefix' => config('admin.route.prefix'),
'namespace' => config('admin.route.namespace')
], function (Router $router) {
$router->resource('signup', SignUpController::class);
});

you need to add this on [ App/Admin/routes.php ]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings