Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vncore committed Sep 7, 2024
1 parent b203653 commit a6efb91
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,25 @@ Overwrite vncore controller files
>Step 2: Change `namespace Vncore\Core\Admin\Controllers` to `namespace App\Vncore\Admin\Controllers`
## Quickly disable Vncore and plugins
Just add the variable `VNCORE_ACTIVE=0` to the `.env` file
## Add route

Use prefix and middleware constants `VNCORE_ADMIN_PREFIX`, `VNCORE_ADMIN_MIDDLEWARE` in route declaration.

References: https://github.com/vncore/core/blob/master/src/Admin/routes.php



## Environment variables in .env file

**Quickly disable Vncore and plugins**
> `VNCORE_ACTIVE=1` // To disable, set value 0
**Disable APIs**
> `VNCORE_API_MODE=1` // To disable, set value 0
**Data table prefixes**
> `VNCORE_DB_PREFIX=vncore_` //Cannot change after install vncore
**Path prefix to admin**
> `VNCORE_ADMIN_PREFIX=vncore_admin`

0 comments on commit a6efb91

Please sign in to comment.