thinmy/cached-eloquent-user

Caches authenticated user information to prevent laravel query on every request.

Installs: 286

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/thinmy/cached-eloquent-user

0.0.2 2015-10-01 19:05 UTC

This package is not auto-updated.

Last update: 2025-10-25 23:37:25 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`;