vncore / core
Core laravel admin for all systems (ecommerce, cms, pmo...)
Fund package maintenance!
vncore
www.paypal.me/LeLanh
Installs: 127
Dependents: 2
Suggesters: 0
Security: 0
Stars: 65
Watchers: 2
Forks: 11
Open Issues: 0
Requires
- php: ^8.2
- barryvdh/laravel-dompdf: ^v2.1
- intervention/image-laravel: ^1.3
- jenssegers/agent: ^2.6
- laravel/framework: ^11.0
- laravel/helpers: ^1.7
- laravel/legacy-factories: ^1.4
- laravel/sanctum: ^4.0
- laravel/tinker: ^2.9
- laravel/ui: ^4.5
- phpoffice/phpspreadsheet: ^2.0
- spatie/laravel-json-api-paginate: ^1.14
- spatie/laravel-pjax: ^2.4
- unisharp/laravel-filemanager: ^2.8
README
Core Laravel admin for all systems (ecommerce, cms, pmo...)
composer require vncore/core
Installation and documentation
About Vncore
Vncore is a compact source code built with Laravel, helping users quickly build a powerful admin website. Whether your system is simple or complex, Vncore will help you operate and scale it easily.
What can Vncore do?
- Provides a powerful and flexible role management and user group solution.
- Offers a synchronous authentication API, enhancing API security with additional layers.
- Build and manage Plugins/Templates that work in the system
- Comprehensive access log monitoring system.
- Continuously updates security vulnerabilities.
- Supports multiple languages, easy management.
- Vncore is FREE
And more:
- Vncore builds a large, open ecosystem (plugin, template), helping users quickly build CMS, PMO, eCommerce, etc., according to your needs.
Laravel core:
Vncore 1.x
Core laravel framework 11.x
Website structure using Vncore
Website-folder/
|
├── app
│ └── Vncore
│ ├── Core(+) //Customize controller of Core
│ ├── Front(+) //Customize controller of Front (`if vncore/front installed`)
│ ├── Helpers(+) //Auto load Helpers/*.php
│ ├── Blocks(+) // The list of blades will be used to display on the admin homepage.
│ ├── Templates(+) //Use `php artisan vncore:make template --name=NameOfTempate`
│ └── Plugins(+) //Use `php artisan vncore:make plugin --name=NameOfPlugin`
├── public
│ └── Vncore
│ ├── Admin(+)
│ ├── Templates(+)
│ └── Plugins(+)
├── resources
│ └── views/vendor
│ └── vncore-admin(+) //Customize view admin
├── vendor
│ └── vncore/core
├── .env
│ └── VNCORE_ACTIVE=1 //ON|OFF vncore
└──...
Support the project
Support this project 😜 🙏
Quick Installation Guide
-
Step 1: Prepare the Laravel source
Refer to the command:
composer create-project laravel/laravel website-folder
-
Step 2: Install the vncore/core package
Move to Laravel directory (in this example is
website-folder
), and run the command:composer require vncore/core
-
Step 3: Check the configuration in the .env file
Ensure that the database configuration and APP_KEY information in the .env file are complete.
If the APP_KEY is not set, use the following command to generate it:
php artisan key:generate
-
Step 4: Initialize vncore
Run the command:
php artisan vncore:install
Useful information:
To view Vncore version
php artisan vncore:info
Update vncore
Update the package using the command:
composer update vncore/core
Then, run the command:
php artisan vncore:update
To create a plugin:
php artisan vncore:make plugin --name=PluginName
To create a zip file plugin:
php artisan vncore:make plugin --name=PluginName --download=1
To create a template:
php artisan vncore:make template --name=TemplateName
To create a zip file template:
php artisan vncore:make template --name=TemplateName --download=1
Customize
Customize vncore-config and functions
php artisan vncore:customize config
Customize view admin
php artisan vncore:customize view
Overwrite vncore_ helper functions*
Step 1: Use the command
php artisan vncore:customize config
to copy the fileapp/config/vncore_functions_except.php
Step 2: Add the list of functions you want to override to
vncore_functions_except.php
Step 3: Create a new function in the
app/Vncore/Helpers folder
Overwrite vncore controller files
Step 1: Copy the controller files you want to override in vendor/vncore/core/src/Admin/Controllers -> app/Vncore/Core/Admin/Controllers
Step 2: Change
namespace Vncore\Core\Admin\Controllers
tonamespace App\Vncore\Core\Admin\Controllers
Overwrite vncore API controller files
Step 1: Copy the controller files you want to override in vendor vendor/vncore/core/src/Api/Controllers -> app/Vncore/Core/Api/Controllers
Step 2: Change
namespace Vncore\Core\Api\Controllers
tonamespace App\Vncore\Core\Api\Controllers
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