Support the ongoing development of Laravel.io →

mohd-bh

Joined 26 Jul 2014

Statistics

Threads 1
Replies 2
Solutions 1
Articles 0
posted 9 years ago

Best practice to separate admin/user controllers

I have a question in mind about separating controllers. For example, let's say I have a website that...

parisan liked this thread

1 Likes
4 Replies
Solved
replied 9 years ago

probleme with routing

Change your routes to use "Admin\AuthController@getLogin" and class Authcontroller to Auth...

0 Likes
replied 9 years ago

How can i distinguish my user between other users?

You simply can check if the requested user ID is same as Auth::user()->id, you allow him to edit...

0 Likes
Solved

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.