edgrosvenor / tupleauth
Replacement for default Laravel auth routes
Requires
- php: ^7.1
- illuminate/support: ^5.6|^6
Requires (Dev)
- laravel/ui: ^1.1
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2020-10-23 02:50:04 UTC
README
I am a big fan of Freek Van der Herten's approach to A better way to register routes in Laravel and Simplifying controllers.
But if you follow his advice your auth routes will break. This is because they rely on that namespace in the routes service provider.
You could just manually add all the auth routes by hand to your web.php file. Or you can just type
composer require edgrosvenor/tupleauth
and delete Routes::auth()
from your routes/web.php file.
That's it. No scripts to run. Nothing to add to any service provider. Just set it and forget it.
Installation
You can install the package via composer:
composer require edgrosvenor/tupleauth
Usage
Follow Freek's instructions in the articles above. Then delete Routes::auth() from routes/web.php.
Credits
License
The MIT License (MIT). Please see License File for more information.