2022-06-24 18:17:20 +02:00
|
|
|
# LDC Web Admin Secure Laravel
|
|
|
|
|
|
|
|
|
|
## Install on Laravel
|
|
|
|
|
```
|
2023-06-05 10:38:03 +00:00
|
|
|
composer req ldc/web-admin-secure-laravel
|
2022-06-24 18:17:20 +02:00
|
|
|
```
|
|
|
|
|
.env.example :
|
|
|
|
|
|
|
|
|
|
```dotenv
|
2023-06-02 17:49:33 +02:00
|
|
|
# ADMIN SECURE
|
|
|
|
|
# - API ENDPOINT (Optional)
|
|
|
|
|
LDC_WEB_API_ENDPOINT="https://ldc-web.ldc.fr/api/ldc-networks"
|
|
|
|
|
# - API KEY
|
2023-07-24 07:13:37 +00:00
|
|
|
LDC_WEB_API_KEY=""
|
2023-06-02 17:49:33 +02:00
|
|
|
# - LIST SEPARATED WITH ',' (Optional)
|
|
|
|
|
LDC_WEB_CIDR_MANUAL_ALLOWED_LIST=""
|
2022-06-24 18:17:20 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
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.
|
2022-07-04 11:41:39 +02:00
|
|
|
**!! Runs only in production !!**
|