Download the PHP package baileylo/session-user without Composer
On this page you can find all versions of the php package baileylo/session-user. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download baileylo/session-user
More information about baileylo/session-user
Files in baileylo/session-user
Download baileylo/session-user
More information about baileylo/session-user
Files in baileylo/session-user
Vendor baileylo
Package session-user
Short Description Authenticated User injection for auto resolving IOCs
License MIT
Package session-user
Short Description Authenticated User injection for auto resolving IOCs
License MIT
Please rate this library. Is it a good library?
Informations about the package session-user
SessionUser
An easy way to inject the authenticated User into your Controllers.
Installation
Step 1: Install the package
Add this line to your composer.json
Or, use the commandline:
Step 2: Register the Service Provider(Laravel Specific)
Edit your app/config/app.php
file and add this line to the providers array:
Step 3: Update your User Object
Add the following interface to your User model/entity,
So your class may now look like this
Usage
In controllers where all functions require authentication you can update the constructor to pass in the authenticated user.
All versions of session-user with dependencies
PHP Build Version
Package Version
No informations.
The package baileylo/session-user contains the following files
Loading the files please wait ....