定制 devfaysal/laravel-admin 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

devfaysal/laravel-admin

Composer 安装命令:

composer require devfaysal/laravel-admin

包简介

Admin Dashboard for Laravel project

README 文档

README

Screenshot_2019-12-20 Laravel

Following packages/Libraries used

Latest Version on Packagist Build Status Quality Score Total Downloads

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

Installation

You can install the package via composer:

composer require devfaysal/laravel-admin

Then add the following middleware to the $routeMiddleware array in app/Http/kernel.php

'admin.auth' => \Devfaysal\LaravelAdmin\Http\Middleware\AdminAuthenticate::class,
'admin.guest' => \Devfaysal\LaravelAdmin\Http\Middleware\AdminRedirectIfAuthenticated::class,
'role' => \Spatie\Permission\Middlewares\RoleMiddleware::class,
'permission' => \Spatie\Permission\Middlewares\PermissionMiddleware::class,
'role_or_permission' => \Spatie\Permission\Middlewares\RoleOrPermissionMiddleware::class,

Publish Assets

php artisan vendor:publish --tag=laravel-admin-public

Publish Seeds

php artisan vendor:publish --tag=laravel-admin-seeders

Run Migration

php artisan migrate

Run seeder

composer dump-autoload

php artisan db:seed --class=LaravelAdminSeeder

Usage

php artisan serve

Then visit localhost:8000/admin/login

username: hello@faysal.me password: password

Additionally if you want to customize the blade view files and want to add other options and menu in the admin panel, you can publish the views and extend

php artisan vendor:publish --tag=laravel-admin-views

If you want to add menu items in the sidebar menu, you need to create a file named menus.blade.php in your root view directoray. It will automatically register menus in the sidebar.

For javascript and css, javascript.blade.php and styles.blade.php

Dashboard modification

To update Dashboard, register /admin/dashboard route and use your own controller and view. If you want the current html design, check vendor folder and copy dashboard.blade.php file from resource/views folder inside the package.

Blade components

Add a stats section component:

<x-laravel-admin::stats-section title="Another title">
    <x-laravel-admin::stats-item count="50" label="Lorem" icon="fa fa-user"/>
    <x-laravel-admin::stats-item count="50" label="Lorem"/>
    <x-laravel-admin::stats-item count="50" label="Lorem"/>
    <x-laravel-admin::stats-item/>
</x-laravel-admin::stats-section>

stats-section

Form field components

<x-text-field name="text" value="Some Value" label="Text Field" tooltip="Tooltip" placeholder="lorem"/>
<x-textarea-field name="textarea" value="Some Text" label="Textarea Field"/>
<x-select-field name="select" :data="[1,2,3,4,5]" label="Select Field"/>
<x-password-field name="password" label="Password Field"/>
<x-number-field name="number" value="5" label="Number Field" min="0"/>
<x-hidden-field name="hidden"/>
<x-file-field name="file" label="File Field"/>
<x-email-field name="email" value="email@example.com" label="Email Field"/>
<x-date-field name="date" value="2020-12-12" label="Date Field"/>
<x-checkbox-field name="checkbox" label="Checkbox Field" value="1"/>

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email hello@faysal.me instead of using the issue tracker.

Credits

License

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

devfaysal/laravel-admin 适用场景与选型建议

devfaysal/laravel-admin 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 341 次下载、GitHub Stars 达 5, 最近一次更新时间为 2019 年 11 月 16 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「laravel-admin」 「devfaysal」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 devfaysal/laravel-admin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 devfaysal/laravel-admin 我们能提供哪些服务?
定制开发 / 二次开发

基于 devfaysal/laravel-admin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 341
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 7
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 1
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-11-16