nurzzzone/admin-panel
最新稳定版本:1.0.0
Composer 安装命令:
composer require nurzzzone/admin-panel
包简介
Admin panel
README 文档
README
Installation
composer require nurzzzone/admin-panel
After package installation run this command to add assets(javascript/css) into public directory
php artisan vendor:publish admin-panel-assets
Basic Usage
\Nurzzzone\AdminPanel\Support\Table component renders rows from database as table
class PostController extends \Nurzzzone\AdminPanel\Controllers\TableController { public function fromTable() { $table = new \Nurzzzone\AdminPanel\Support\Table(Post::query()); $table->enablePagination(); $table->addColumn(new \Nurzzzone\AdminPanel\Support\Table\Text('ID', 'id')); $table->addColumn(new \Nurzzzone\AdminPanel\Support\Table\Text('Title', 'title')); return $table; } }
If you want to add your custom views using admin-panel layout you need to add this into the top of the blade file:
@extends('admin-panel::layouts.base') @section('title', 'Blog Posts') // page title @section('css') // styles @endsection() @section('content') // html content @endsection() @section('scripts') // js @endsection()
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-08