twitnic / laravel-fileauthprovider
Read Username and Password from .env File.
0.0.4
2015-10-06 12:25 UTC
Requires
- php: >=5.4
Requires (Dev)
- laravel/framework: ~5.0
This package is not auto-updated.
Last update: 2024-12-17 03:53:02 UTC
README
Read Username and Password from .env-File
Installation
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',
),
Usage
.env File:
Add the following Lines to your .env-File
:
- username=admin
- password=admin
Configuration
Open config/auth.php
and set appropiate driver and model:
[
...
'driver' => 'File',
...
]
Use authentication as explained on Laravel's Authentication chapter.