elijahcruz/livt-commands

一个包含辅助命令的Laravel、Inertia、Vue、Tailwind包

0.4.1 2023-09-03 20:29 UTC

This package is auto-updated.

Last update: 2024-09-03 22:34:40 UTC


README

此包为Laravel、Inertia、Vue、Tailwind项目提供了简单易用的命令。

它还包括一个livt:install命令,用于安装Laravel、Inertia、Vue、Tailwind项目所需的全部包,无需Jetstream或Breeze,使您能更好地控制项目。

要求

  • Laravel 10.x 或更高版本
  • NPM
  • Node

安装

您可以通过composer安装此包

composer require --dev elijahcruz/livt-commands

用法

livt:install

此命令将安装Livt堆栈所需的包,甚至还会为您安装Ziggy。它适用于全新的Laravel安装。

php artisan livt:install

make:page

此命令将在resources/js/Pages中创建一个新的页面。您可以在名称中使用/来创建子目录,或者也可以使用点表示法。

// This works
php artisan make:page page.name

// This also works
php artisan make:page Page/Name

// Even this works
php artisan make:page Page.Name

// And also this
php artisan make:page Page/Name/With/More/Names

// Want to create a component? Use the --component flag.
// It'll use the resources/js/Pages folder instead.
php artisan make:page MyAwesome.Component --component