ldc-web-admin-secure-laravel/README.md

35 lines
716 B
Markdown

# LDC Web Admin Secure Laravel
## Install on Laravel
```
composer req ldc/web-admin-secure-laravel:1.0.1
```
.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="CE8S52Qq7stf5k8frF4T"
# - 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 !!**