定制 alqudiry/dashboard 二次开发

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

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

alqudiry/dashboard

最新稳定版本:1.2

Composer 安装命令:

composer require alqudiry/dashboard

包简介

Create powerful dashboard

README 文档

README

Dashboard package create your dashboard with users, roles and settings with only one line.

Installation

composer require alqudiry/dashboard

Publish

Before publish the dashboard, please remove these files first:

app/Models/User.php
database/factories/UserFactory.php
database/migrations/2014_10_12_000000_create_users_table.php
database/migrations/2014_10_12_100000_create_password_resets_table.php
resources/lang/ar
resources/views
package.json
webpack.mix.js

publish package

php artisan vendor:publish --provider="Alqudiry\Dashboard\DashboardServiceProvider"

Configuration

Update your "App\Http\Kernel.php" to include webServiceAuth class:

'webServiceAuth' => \App\Http\Middleware\WebServiceAuth::class,

Add FortifyServiceProvider to your "config\app.php":

App\Providers\FortifyServiceProvider::class,

Update your "routes\web.php" to include this routes:

Route::get('/', [\App\Http\Controllers\HomeController::class, 'index'])->name('home');

Route::group(['middleware' => ['auth']], function () {
    Route::group(['as' => 'user.', 'prefix' => 'user'], function () {
        Route::resource('/profile', \App\Http\Controllers\User\ProfileController::class)->only('index', 'store');
    });

    Route::group(['as' => 'dashboard.', 'prefix' => 'dashboard'], function () {
        Route::group(['as' => 'system.', 'prefix' => 'system'], function () {
            Route::resource('/statistics', \App\Http\Controllers\Dashboard\System\StatisticsController::class)->only('index');
            Route::resource('/users', \App\Http\Controllers\Dashboard\System\UsersController::class)->only('index', 'edit', 'update');
            Route::resource('/roles', \App\Http\Controllers\Dashboard\System\RolesController::class)->except('show', 'destroy');
            Route::resource('/web-services', \App\Http\Controllers\Dashboard\System\WebServicesController::class)->except('show', 'destroy');
            Route::resource('/settings', \App\Http\Controllers\Dashboard\System\SettingsController::class)->only('index', 'store');
        });
    });
});

Make App Running

npm install
npm run dev

You Are Ready ..

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: SCSS

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-01-08