承接 laravel-frontend-presets/tailwindcss 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

laravel-frontend-presets/tailwindcss

最新稳定版本:4.3.1

Composer 安装命令:

composer require laravel-frontend-presets/tailwindcss

包简介

Laravel frontend preset for Tailwind CSS

README 文档

README

A Laravel front-end scaffolding preset for Tailwind CSS - a Utility-First CSS Framework for Rapid UI Development.

Usage

  1. Fresh install Laravel >= 7.0 and cd to your app.
  2. Install this preset via composer require laravel-frontend-presets/tailwindcss --dev. Laravel will automatically discover this package. No need to register the service provider.

a. For Presets without Authentication

  1. Use php artisan ui tailwindcss for the basic Tailwind CSS preset
  2. npm install && npm run dev
  3. php artisan serve (or equivalent) to run server and test preset.

b. For Presets with Authentication

  1. Use php artisan ui tailwindcss --auth for the basic preset, auth route entry, and Tailwind CSS auth views in one go. (NOTE: If you run this command several times, be sure to clean up the duplicate Auth entries in routes/web.php)
  2. npm install && npm run dev
  3. Configure your favorite database (mysql, sqlite etc.)
  4. php artisan migrate to create basic user tables.
  5. php artisan serve (or equivalent) to run server and test preset.

Config

The default tailwind.config.js configuration file included by this package simply uses the config from the Tailwind vendor files. Should you wish to make changes, you should remove the file and run node_modules/.bin/tailwind init, which will generate a fresh configuration file for you, which you are free to change to suit your needs.

Add a new i18n string in the resources/lang/XX/pagination.php file for each language that your app uses:

'previous' => '« Previous',
'next' => 'Next »',
'goto_page' => 'Goto page #:page', // Add this line

This should help with accessibility

<li>
    <a href="URL?page=2" class="..."
       aria-label="Goto page #2"
    >
        2
    </a>
</li>

Pagination

Laravel now supports Tailwind CSS pagination directly. If you would like to use these views in your app, you can refer to docs.

Screenshots

Welcome

Register

Login

Reset Password

Dashboard

Verify

统计信息

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

GitHub 信息

  • Stars: 1149
  • Watchers: 34
  • Forks: 138
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-11-02