Closed leankarlo closed 10 years ago
There's a problem with the config and a second amendment that could be made.
If you're going to use the multiauth reminder service, then you'll need to replace the serviceprovider for the default reminder, and if not, you'll need to remove the default as it'll cause some issues.
You can actually remove the default bit of auth specifying the model, type and table.
'driver' => 'eloquent',
'model' => 'User',
'table' => 'users',
That's never used so it isn't needed.
The problem is that since you aren't using composer, you don't have any autoload functionality. To put it simply, Laravel doesn't know how to load my file, so you'll either need to generate an autoload yourself composer dumpautoload
or use the artisan command php artisan dump-autoload
which I believe will fix the problem for you.
thanks for the help it worked.
Hi Ollie,
I've tried using your code in laravel for 2 table login. But i'm having this error. Could you help me?
Symfony \ Component \ Debug \ Exception \ FatalErrorException Class 'Ollieread\Multiauth\MultiauthServiceProvider' not found
I copy paste the Ollieread folder to vendor/laravel/framework/src beside the Illuminate folder.
here is my auth.php code
Here is my app.php
Hope to hear from you soon
Thanks, Lean Karlo U. Corpuz