laravel-shield | A HTTP basic auth middleware for Laravel | Runtime Evironment library
kandi X-RAY | laravel-shield Summary
kandi X-RAY | laravel-shield Summary
A HTTP basic auth middleware for Laravel.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Setup the config .
- Register the shield class .
- Get the service providers .
- Bootstrap the application .
laravel-shield Key Features
laravel-shield Examples and Code Snippets
Community Discussions
Trending Discussions on laravel-shield
QUESTION
I edited this question, as the comments suggested it was unclear:
I need to add a configuration page to my Laravel app. This configuration should enable ad hoc changes to the environment of the app.
This also includes changing the database that the app is working with. Therefore, I can't use a standard login page (auth) or the http basic authentication (auth.basic) middleware of laravel, as these refer to a database.
I'd rather store the login information (hashed user and pw) for the configuration in the .env file and write a middleware that refers to this. I'm currently searching for a solution that uses http basic authentication like: https://github.com/vinkla/laravel-shield.
As this is question is already rather inactive, I'll post an answer as soon as I find a solution.
...ANSWER
Answered 2019-Nov-20 at 10:13I found a solution: Laravel Shield is indeed a good solution for something like this. You can store the login credentials for the "root" user in the .env file. The information in the read me got it working for me: https://github.com/vinkla/laravel-shield
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install laravel-shield
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page