Support the ongoing development of Laravel.io →
Authentication
Last updated 1 year ago.
0

Add an admin field in users table

0

I have added a role_id field to users table and a new Roles table with id,name + any other fields for capabilities..

After authentication you could just render an admin view where the role_id is the admins id...

0

In the routes file just delete or comment out the auth routes.

/*
Route::controllers([
	'auth' => 'Auth\AuthController',
	'password' => 'Auth\PasswordController',
]);
*/

I guess you could through the trouble of even removing more.

0

How can I create controllers in an admin directory?

e.g. app/Http/Controllers/Admin/WelcomeController.php

I want to access the admin panel at /admin and be separate from the front end, or is there a better way?

0

i'm in the same case.

In L4 I used Sentry but now you must pay for use it.

I'm studying how to do it too.

0

Try this one http://adminarchitect.com. Developed by developers for developers.

Last updated 6 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

chrisml chrisml Joined 14 Feb 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.