定制 ivanaquino/laravel-taildashboards 二次开发

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

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

ivanaquino/laravel-taildashboards

最新稳定版本:v0.1.1

Composer 安装命令:

composer require ivanaquino/laravel-taildashboards

包简介

Laravel Taildashboards a seamless integration between Taildashboards and Laravel, allowing developers to easily incorporate beautiful, pre-designed dashboard components into their Laravel applications.This is my package laravel-taildashboards

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This Laravel package provides an effortless way to implement beautiful and responsive dashboard templates from Taildashboards. Taildashboards offers a collection of pre-designed templates built with Tailwind CSS, and this package helps you to incorporate them into your Laravel application with ease.This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require ivanaquino/laravel-taildashboards

You need tailwind installation on your laravel, if you're using jetstream or breeze you have it installed but if not you can follow the official tailwindcss guide

You will need the npm package @tailwindcss/typography, and add the font config to your tailwind.config.js

export default {
    theme: {
        extend: {
            fontFamily: {
                sans: ["Figtree", ...defaultTheme.fontFamily.sans],
            },
        },
    },
    plugins: [require("@tailwindcss/typography")],
};

If you're having problems with broken styles you can add this line into tailwind.config.js

export default {
    content: [
        // ...
        "./vendor/ivanaquino/laravel-taildashboards/resources/views/**/*.blade.php",
        // ...
    ],
};

You can publish the config file with:

php artisan vendor:publish --tag="taildashboards-config"

In this file you'll be able to edit the menu for the dashboard

'menu' => [
    [
        'label' => 'Dashboard',
        'route' => 'dashboard',
        'active_route' => 'dashboard',
        'icon' => 'home',
    ],
    [
        'label' => 'View 1',
        'route' => 'view-1',
        'active_route' => 'view-1',
        'icon' => 'circle',
    ],
    [
        'label' => 'View 2',
        'route' => 'view-2',
        'active_route' => 'view-2',
        'icon' => 'home',
    ],
],

Optionally, you can publish the views using

php artisan vendor:publish --tag="laravel-taildashboards-views"

Usage

# As blade layout
@extends('laravel-taildashboards::layouts.tailapp')

@section('content')
    Lorem ipsum dolor sit amet consectetur adipisicing elit.
@endsection

# Or as a component layout
<x-laravel-taildashboards::layout-tailapp>
    Lorem, ipsum dolor sit amet consectetur
</x-laravel-taildashboards::layout-tailapp>

Availables

@extends('laravel-taildashboards::layouts.tailapp')
@extends('laravel-taildashboards::layouts.tailism')

<x-laravel-taildashboards::layout-tailapp>
<x-laravel-taildashboards::layout-tailism>

Roadmap

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-20