35 lines
690 B
Markdown
35 lines
690 B
Markdown
# LDC Web Admin Secure Laravel
|
|
|
|
## Install on Laravel
|
|
```
|
|
composer req ldc/web-admin-secure-laravel
|
|
```
|
|
.env.example :
|
|
|
|
```dotenv
|
|
# ADMIN SECURE
|
|
# - API ENDPOINT (Optional)
|
|
LDC_WEB_API_ENDPOINT="https://ldc-web.ldc.fr/api/ldc-networks"
|
|
# - API KEY
|
|
LDC_WEB_API_KEY=""
|
|
# - LIST SEPARATED WITH ',' (Optional)
|
|
LDC_WEB_CIDR_MANUAL_ALLOWED_LIST=""
|
|
```
|
|
|
|
README.md :
|
|
```
|
|
Put every min in PROD :
|
|
php artisan schedule:run
|
|
```
|
|
|
|
## Available Commands
|
|
```
|
|
ldcweb:admin-secure-sync
|
|
```
|
|
## Usage
|
|
Put 'admin-secure' middleware on route to protect it.
|
|
## Cron configure
|
|
|
|
Nothing to do command is already configureed to run everyday.
|
|
You just need to install this package.
|
|
**!! Runs only in production !!**
|