Dashboard for admin

v0.1.44 2017-05-23 17:54 UTC

README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Dash is a Laravel package that makes Admin / UI development easier. Warning it will not do all of your crud work, code is required. Enjoy! (Preview Release). Read the full docs here.

Install

Via Composer

$ composer require shawnsandy/dash

Add to the config/app.php providers array

ShawnSandy\Dash\DashServicesProvider::class,

// dependencies
Collective\Html\HtmlServiceProvider::class,

Add to config/app.php aliases array

"Dash" => ShawnSandy\Dash\DashFacade::class,
"DashForms" => ShawnSandy\Dash\Builder\GenerateFormFieldsFacade::class,

// dependencies

'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,

Dash Routes

You can add dash route to your routes\wep.php which give you access to dashboard, content, media, pages, system, users, settings via /admin.

Route::group(['prefix' => 'admin'], function(){
   Dash::routes();
});

Usage

Dash Components

Icons based on font awesome

{{ Html::dashIcons() }} 
{{ Html::dashIcons("users") }} //icon name

Data Table

{{ Html::dataTable($users, // users data
    ["id", "name", "email", "created_at"], // columns (title)
    ['page_length' => 15, 'order' => "desc", "edit_url" => '/admin/users/'], // options
    ['class' => 'data-table'] // element attributes
    )
}}

*Forms

{{ Form::createForm('App\User', "admin/users") }}

Slot based components (Laravel 5.4^)

  • Info Panel
@component("dash::components.panels.info", ["title" => "Users", "icon" => "circle-o"])
<h3>{{ count($users) }} Registered Users</h3>
@endcomponent
  • Widget
@component("dash::components.panels.widget", ["title" => "Add New User(s)"])

        {{ config(["dash.forms.users.field_types.password" => "text"]) }}

        {{ Form::createForm('App\User', "admin/users") }}

@endcomponent

Read the full docs here.

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email shawnsandy04@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.