Multi-Auth for Laravel 5.1
This is a mostly drop-in replacement for Laravel 5.2's Multi-Auth for Laravel 5.1. Most of the source core for this project comes from Laravel 5.2, and is just refactored to work with 5.1.
Require this package with composer:
composer require reed/auth
After updating composer, add the Service Provider to the providers array in
To avoid conflicts, you should also remove Laravel's Auth Provider.
However, you should keep Laravel's Auth Facade, as this package just replaces the underlying singleton.
Go ahead and grab yourself a copy of Laravel 5.2's configuration file. The old configuration file won't work, and you'll probably want to configure this one to match your settings.
Any references to Laravel 5.1's Authorization Layer isn't going to work anymore. You'll want to swap them out with the new components. Here are the new class paths:
Common places to find these are:
It's exactly the same as Multi-Auth in Laravel 5.2, so I'll refer you to the documentation.