Search code examples
phpauthenticationlaravel-5laravel-artisan

Laravel artisan make:auth


I am new to Laravel 5 and I am wanting to create an "admin" area so I have created views/admin and controllers/admin folders. Is there a way using artisan or make:auth that will allow me to specify the "folder" that I would like the code to be installed into?


Solution

  • The command itself doesn't allow you to do that, however you can change paths for your auth routes, controllers and views manually. It's really easy to do that. Just don't forget also to edit namespace in you controller.

    namespace App\Http\Controllers\MyAdminPanel;