laravel-admin

Laravel Admin panel with theme , modules ,artisan commands and helper classess.Laravel admin boilerplate with theme and modules

MIT License

Downloads
391
Stars
32
Committers
5

Content Management System using laravel framework

Features:

  1. Cms
  2. Admin interface
  3. Module based app
  4. Theme based
  5. Plugins
  6. Roles and Permissions
  7. Menu creation
  8. User Management
  9. Page Creation
  10. Mail configurations
  11. Site Configuration,etc

Version

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

Change Logs

Version v2.4

  1. Data table version update
  2. Seed command bug fix

Version v2.2

  1. Data table version update
  2. Bug fix

Version v2.1.1

  1. CRUD Module added
    easy crud module with single command
  • php artisan make:cms-module {module-name} {--crud}
    eg:
    php artisan make:cms-module test --crud
    
  1. CRUD view
    create crud views using artisan command
  • php artisan make:cms-crudviews

    it will create 2 file inside resources/views/admin

    index.blade.php edit.blade.php

Install:

composer require phpworkers/cms

Requiremments:

  1. Laravel 5.4 or later
  2. laravelcollective/html: ~5.0
  3. yajra/laravel-datatables-oracle: ~9.0
  4. unisharp/laravel-filemanager: ^1.8

After Install:

// 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,
Then Run Following commands
# 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

Username : admin
Password : admin123

Documents

  • Folder Structure
  • Theme
  • What is Module?
  • Core
  • Local
  • List of core modules
  • Create Own module
  • Artisian Commands
  • Skin
  • Helper
  • Core Helper functions
  • Plugins

Folder Structure

Main path

  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)

Skin path

  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

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

Create Theme

Just create new folder inside of cms->local

Change theme

If you want to change theme?its very easy Go to adminpanel->site configuration->change theme

Modules

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

core is folder,that contain core modules (pre-defind) Module

Note: Don't change any code of core module's

Local

local folder contain local module,which is created by user

Create own module

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

module.json

{
    "name": "helloworld",
    "version": "0.0.1",
    "type": "local",
    "providers": ["Providers\\HelloworldServiceProvider"]
}
Package Rankings
Top 19.81% on Packagist.org