Package Data | |
---|---|
Maintainer Username: | twitnic |
Package Create Date: | 2015-09-13 |
Package Last Update: | 2016-05-19 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-19 03:02:00 |
Package Statistics | |
---|---|
Total Downloads: | 61 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Read Username and Password from .env-File
Require twitnic/laravel-fileauthprovider
in composer.json and run composer update
.
{
"require": {
"laravel/framework": "5.0.*",
...
"twitnic/laravel-fileauthprovider": "*"
}
...
}
Composer will download the package. After the package is downloaded, open config/app.php
and add the service provider:
In Laravel 5.0:
'providers' => array(
...
'Twitnic\FileAuth\FileAuthProvider',
),
In Laravel 5.1:
'providers' => array(
...
'Twitnic\FileAuth\FileAuthProvider::class',
),
Add the following Lines to your .env-File
:
Open config/auth.php
and set appropiate driver and model:
[
...
'driver' => 'File',
...
]
Use authentication as explained on Laravel's Authentication chapter.