I want to enable login and registration for my twill app

/login route is giving me this error "Target class [App\Http\Controllers\Auth\LoginController] does not exist." I included this in my twill cinfig file: 'enabled' => [ 'users-management' => true, 'media-library' => true, 'file-library' => true, 'block-editor' => true, 'buckets' => true, 'users-image' => false, 'settings' => true, 'dashboard' => true, 'search' => true, 'users-description' => false, 'activitylog' => true, 'users-2fa' => false, 'users-oauth' => true, 'permissions-management' => true, ], But still not working
6 Replies
ifox
ifox17mo ago
Hello @realsbd, please be more clear about your issue. Do you have a working Twill app and you changed something and now you can't access login? or you are just getting started and stuck trying to login. You dont need to change anything in the Twill configuration file to enable login. It is automatically available to enter the cms. By default if you are not logged in, /admin would redirect you to /admin/login.
realsbd
realsbd17mo ago
I have a working twill CMS, I want to have the login button on my homepage and also if the user is logged in to change to logout
ifox
ifox17mo ago
please try to be more clear. do you mean the homepage of your frontend? if yes, just a standard link to the admin login url will do to check if the user is logged in for the label of the button: Auth::guard('twill_users')->check()
realsbd
realsbd17mo ago
this really helps thank you. what about if I want to redirect back to homepage after login instead of admin dashboard, how can I do that?
ifox
ifox17mo ago
GitHub
twill/config/twill.php at 6457e56318d87819b5230511dd35efd9ad59188f ...
Twill is an open source CMS toolkit for Laravel that helps developers rapidly create a custom admin console that is intuitive, powerful and flexible. Chat with us on Discord at https://discord.gg/c...
realsbd
realsbd17mo ago
thanks man, you're a lifesaver
Want results from more Discord servers?
Add your server