twitnic / laravel-fileauthprovider
Read Username and Password from .env File.
Installs: 62
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/twitnic/laravel-fileauthprovider
Requires
- php: >=5.4
Requires (Dev)
- laravel/framework: ~5.0
This package is not auto-updated.
Last update: 2025-10-21 07:44:03 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.