shawnsandy / dash
Dashboard for admin
Installs: 105
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 1
Language:CSS
Requires
- php: ~5.6|~7.0
- shawnsandy/extras: ^0.1.21
Requires (Dev)
- phpunit/phpunit: ~4.0||~5.0
- squizlabs/php_codesniffer: ^2.3
- dev-master / 1.0.x-dev
- v0.1.44
- v0.1.43
- v0.1.42
- v0.1.41
- v0.1.40
- v0.1.39
- v0.1.38
- v0.1.37
- v0.1.36
- v0.1.35
- v0.1.34
- v0.1.33
- v0.1.32
- v0.1.31
- v0.1.30
- v0.1.29
- v0.1.28
- v0.1.27
- v0.1.26
- v0.1.25
- v0.1.24
- v0.1.23
- v0.1.22
- v0.1.21
- v0.1.15
- v0.1.14
- v0.1.13
- v0.1.12
- v0.1.11
- v0.1.4
- v0.1.3
- v0.1.2.1
- v0.1.2
- v0.1.1
- v0.1.0
- dev-develop
This package is not auto-updated.
Last update: 2024-11-24 03:09:19 UTC
README
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
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
- Shawn Sandy
- [All Contributors][link-contributors]
License
The MIT License (MIT). Please see License File for more information.