2017 © Pedro Peláez
 

library panel

Admin panel

image

websecret/panel

Admin panel

  • Tuesday, June 13, 2017
  • by websecret
  • Repository
  • 5 Watchers
  • 3 Stars
  • 787 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 22 Versions
  • 0 % Grown

The README.md

Laravel 5 admin panel template

Installation

This package is very easy to set up. There are only couple of steps., (*1)

Composer

Pull this package in through Composer (file composer.json)., (*2)

{
    "require": {
        "websecret/panel": "dev-master"
    }
}

Run this command inside your terminal., (*3)

composer update

Service Provider

Add the package to your application service providers in config/app.php file., (*4)

'providers' => [
    Websecret\Panel\PanelServiceProvider::class,
    Spatie\Glide\GlideServiceProvider::class,
],

'aliases' => [
    'FormHelper' => Websecret\Panel\FormHelperFacade::class,
    'GlideImage' => Spatie\Glide\GlideImageFacade::class,
],

Views, Assets, Models

Publish the package views and assets to your application. Run these commands inside your terminal., (*5)

php artisan vendor:publish --provider="Websecret\Panel\PanelServiceProvider" --tag=config
php artisan vendor:publish --provider="Websecret\Panel\PanelServiceProvider" --tag=migrations
php artisan vendor:publish --provider="Websecret\Panel\PanelServiceProvider" --tag=models
php artisan vendor:publish --provider="Websecret\Panel\PanelServiceProvider" --tag=commands
php artisan vendor:publish --provider="Websecret\Panel\PanelServiceProvider" --tag=views
php artisan vendor:publish --provider="Websecret\Panel\PanelServiceProvider" --tag=assets
php artisan vendor:publish --provider="Spatie\Glide\GlideServiceProvider"

Use --force to overwrite files, (*6)

Usage

Helpers.js

Classes

.js_panel_form-ajax - forms will be submited by AJAX. U can use .js_panel_form-ajax-redirect to redirect on repsonse data.link page, (*7)

.js_panel_delete - attach prompt (y/n) popup on delete action. U can use js_panel_delete-table-row or data-delete. Default deleting parent element, (*8)

.js_panel_input-date - use for init bootsrap datepicker on input, (*9)

.js_panel_input-time - use for init bootstrap timicker on input, (*10)

.js_panel_input-mask - use for init mask on input via input data-mask attribute, (*11)

.js_panel_input-phone - working same as .js_panel_input-mask. Mask is '+375 (99) 999-99-99', (*12)

.js_panel_input-chosen - use it on selects to init chosen, (*13)

.js_panel_input-select2 - use it on selects to init, (*14)

.js_panel_input-redactor - use it to init redactor.js wysiwyg, (*15)

.js_panel_datatable - use it to init Datatables. Use data-datatable-order ('asc', 'desc', false) on thead th to set column order. Use data-datatable-search (true, false) on thead th to set column searching., (*16)

Functions

showNotification(text, title, type), (*17)

Events

panel-form-ajax-submitted, (*18)

panel-form-ajax-error, (*19)

panel-form-ajax-success, (*20)

panel-multiple-added, (*21)

panel-multiple-removed, (*22)

panel-addable-exists-click, (*23)

Helpers.less

.td-actions - set row min width and remove text wrap, (*24)

.mb-5 - .mb-25 - use to add margin-bottom, (*25)

The Versions

13/06 2017

dev-master

9999999-dev

Admin panel

  Sources   Download

MIT

The Requires

 

panel

13/06 2017
24/05 2017

1.1.x-dev

1.1.9999999.9999999-dev

Admin panel

  Sources   Download

MIT

The Requires

 

panel

24/05 2017
24/05 2017
17/11 2016

2.0.x-dev

2.0.9999999.9999999-dev

Admin panel

  Sources   Download

MIT

The Requires

 

panel

17/11 2016
07/10 2016
22/09 2016
22/09 2016
20/09 2016
20/09 2016
23/08 2016
23/08 2016
02/08 2016
15/07 2016
14/07 2016
12/07 2016
12/07 2016
12/07 2016
12/07 2016
23/12 2015