Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dipcb05's avatar

make another custom app in laravel project

in my laravel app, i want to make another independent system named admin, which no relate with default laravel app. in the admin system, i will write some query for admins, and admin will have some mail from user. according to my faculty instruction, i have to make a custom authentication and authorization using raw php here. so where i have to put the 'admin' folder in my default laravel app? to link with my default app

0 likes
1 reply
alanholmes's avatar

Hi @dipcb05

If they are to be completely standalone separate apps, then make them separate apps, and you could host ot on a subdomain or something.

However, if the admin needs to exist within the main app, then that is fine too, you just need to have a way of identifying them from normal users.

There are at least 2 ways that you can do this.

  1. Do a duel model login - this is not something I have done before, but I did find a video series to it before, that I linked to in this post: https://laracasts.com/discuss/channels/laravel/how-do-i-authenticate-two-models

  2. Use something like https://github.com/spatie/laravel-permission to have different roles for users (this is the method I have used, and it works quite well)

Please or to participate in this conversation.