thinmy / cached-eloquent-user
Caches authenticated user information to prevent laravel query on every request.
0.0.2
2015-10-01 19:05 UTC
Requires
- illuminate/support: ~5.0
This package is not auto-updated.
Last update: 2024-11-23 19:00:34 UTC
README
Caches authenticated user information to prevent laravel query on every request.
Instalation
1. Dependencies
Using composer, execute the following command to automatically update your composer.json
:
composer require thinmy/cached-eloquent-user
or manually update composer.json
{ "require": { "thinmy/cached-eloquent-user": "^0.0.1" } }
After updating composer, add the ServiceProvider to the providers array in config/app.php
.
'providers' => [ Thinmy\CachedEloquentUser\AuthServiceProvider::class, ],
After updating providers, update your authentication driver in config/auth.php
.
'driver' => 'cachedEloquent`;