Laravel Admin panel with theme , modules ,artisan commands and helper classess.Laravel admin boilerplate with theme and modules
MIT License
Laravel Version | Version |
---|---|
5.4 | 1.0 to 2.0 |
5.5 | >=2.1 |
5.6 | >=2.1 |
5.7 | >=2.1 |
5.8 | >=2.2 |
6 | >=2.3 |
7 | >=2.3 |
8 | >=2.4 |
php artisan make:cms-module {module-name} {--crud}
php artisan make:cms-module test --crud
php artisan make:cms-crudviews
it will create 2 file inside resources/views/admin
index.blade.php
edit.blade.php
composer require phpworkers/cms
// Add following Lines to `config/app.php` providers array
//html
Collective\Html\HtmlServiceProvider::class,
//datatable
Yajra\DataTables\DatatablesServiceProvider::class,
Ramesh\Cms\CmsServiceProvider::class,
// Add Following Lines to `config/app.php` aliases array
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
'Cms' => Ramesh\Cms\Facades\Cms::class,
# Publishing css,js,config files,core modules,theme,etc
php artisan vendor:publish
# Publishing filemanager resources
php artisan vendor:publish --provider="UniSharp\LaravelFilemanager\LaravelFilemanagerServiceProvider"
composer dump-autoload
# Migrate our tables
php artisan cms-migrate
# Seeding
php artisan db:cms-seed
#register modules to table
php artisan update:cms-module
#register plugins
php artisan update:cms-plugins
#regiser menus
php artisan update:cms-menu
Open your route/web.php
and remove rollowing lines(route)
Route::get('/', function () {
return view('welcome');
});
then run
php artisan serve
and open localhost:8000/administrator
cms (main)
|
|__core
| |
| |__core modules
|
|__local
|
|__themes
|
|__local modules
1.cms : cms path is the main path of our app,that contain
1.1 : core
1.2 : local
1.1 : core : core path is core module path ,that contain number of core modules,avoid to write core modules
1.1.1 : core modules -> core path contain number of core modules
1.2 : local : local path contain theme,we can create multiple theme
1.2.1 : local modules -> theme path contain number of local module(user create module)
public
public (main)
|
|_skin
|
|__theme name
|
|__css,js,vendor,fonts,etc
1 : public ->public folder is default folder in laravel
1.1 : skin -> skin folder is our assets folder
1.1.1 : theme name -> folder name is theme name , that contain css, fonts ,js,etc
Theme is main part of our package,we can create multiple theme,our package is theme and moduler based,all theme is placed on cms->local folder Default theme is theme1
Just create new folder inside of cms->local
If you want to change theme?its very easy Go to adminpanel->site configuration->change theme
Module is is a mechanism to group controller, views, modules, etc that are related, otherword module is pice of code or package of laravel
core is folder,that contain core modules (pre-defind) Module
Note: Don't change any code of core module's
local folder contain local module,which is created by user
php artisan make:cms-module {module-name}
eg :
php artisan make:cms-module helloworld
helloworld module is created under current theme folder then register our module to database for feature use php artisan update:cms-module
{
"name": "helloworld",
"version": "0.0.1",
"type": "local",
"providers": ["Providers\\HelloworldServiceProvider"]
}