https://github.com/zwacky/loginchecka
Small login component that addsd a config auth driver to casually drop in yo app
https://github.com/zwacky/loginchecka
Last synced: 8 months ago
JSON representation
Small login component that addsd a config auth driver to casually drop in yo app
- Host: GitHub
- URL: https://github.com/zwacky/loginchecka
- Owner: zwacky
- License: mit
- Created: 2014-03-26T08:16:18.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-02-04T10:31:50.000Z (over 11 years ago)
- Last Synced: 2025-01-04T14:49:14.705Z (over 1 year ago)
- Language: PHP
- Size: 176 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Loginchecka
===========
Small login component that adds a config auth driver to casually drop in yo app.

Instructions
------------
* do a `php artisan config:publish --path="vendor/zwacky/loginchecka/config" zwacky/loginchecka`
* add `'Zwacky\Loginchecka\LogincheckaServiceProvider'` to your app.php providers array
* change `'driver' => 'config'` in config/auth.php
Add or modify accounts
----------------------
Assuming you're using the config auth driver, you can modify the access accounts `config/packages/zwacky/loginchecka/config.php` under `valid_logins`.
Default the identifier to use is username. If you're using an eloquent auth driver and your logins need an email to authenticate, change `config_driver.identifier` in the loginchecka config.
Integration with Frozennode/Laravel-Administrator
-------------------------------------------------
check that `config/packages/frozennode/administrator/administrator.php` has the following changes in the config:
```php
'permission'=> function()
{
return Auth::check();
},
// the same as loginchecka::urls.login
'login_path' => 'login',
```