grebo87/flowbite-admin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

grebo87/flowbite-admin

最新稳定版本:v1.0.0

Composer 安装命令:

composer require grebo87/flowbite-admin

包简介

Flowbite Admin Theme for Laravel

README 文档

README

PHP Version Laravel Version License

A beautiful admin dashboard theme for Laravel using Flowbite components and Tailwind CSS.

Features

  • 🎨 Modern UI - Clean and professional admin interface
  • 🌙 Dark Mode - Built-in dark mode support with toggle
  • 📱 Responsive - Mobile-friendly sidebar and navigation
  • 🧩 Components - Ready-to-use Blade components (cards, tables, forms, charts)
  • Easy Setup - One command installation

Requirements

  • PHP 8.2+
  • Laravel 10.x, 11.x or 12.x
  • Node.js & NPM

Installation

Step 1: Install the package

composer require grebo87/flowbite-admin

Step 2: Run the installer

php artisan flowbite-admin:install

This command will:

  • Add Flowbite dependencies to package.json
  • Configure tailwind.config.js
  • Update app.css and app.js

Step 3: Build assets

npm install && npm run build

Usage

Using the Layout

Extend the admin layout in your Blade views:

@extends('flowbite-admin::layouts.app')

@section('content')
    <h1 class="text-2xl font-bold dark:text-white">Dashboard</h1>
    <!-- Your content here -->
@endsection

Available Components

Card

<x-flowbite-admin::card title="Sales Overview">
    <p>Your card content here</p>
</x-flowbite-admin::card>

Table

<x-flowbite-admin::table :headers="['Name', 'Email', 'Role']">
    @foreach($users as $user)
        <tr>
            <td>{{ $user->name }}</td>
            <td>{{ $user->email }}</td>
            <td>{{ $user->role }}</td>
        </tr>
    @endforeach
</x-flowbite-admin::table>

Form Components

<x-flowbite-admin::form.input
    name="email"
    label="Email"
    type="email"
    placeholder="Enter your email"
/>

<x-flowbite-admin::form.select
    name="role"
    label="Role"
    :options="['admin' => 'Admin', 'user' => 'User']"
/>

<x-flowbite-admin::form.button type="submit" variant="primary">
    Save
</x-flowbite-admin::form.button>

Chart (ApexCharts)

<x-flowbite-admin::chart
    id="sales-chart"
    type="area"
    :options="$chartOptions"
/>

Customization

Publishing Assets

Publish the views to customize them:

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

Publish the configuration:

php artisan vendor:publish --tag=flowbite-admin-config

Configuration Options

After publishing, edit config/flowbite-admin.php:

return [
    'app_name' => 'My Admin Panel',
    'logo' => '/images/logo.svg',

    'sidebar' => [
        ['label' => 'Dashboard', 'route' => 'dashboard', 'icon' => 'chart-pie'],
        ['label' => 'Users', 'route' => 'users.index', 'icon' => 'users'],
    ],
];

Stacks

The layout provides these Blade stacks for adding custom assets:

@push('styles')
    <link rel="stylesheet" href="/custom.css">
@endpush

@push('scripts')
    <script src="/custom.js"></script>
@endpush

Testing

composer test

License

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

Author

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固