andach/laravel-view-components

This is my package laravel-view-components

v1.0.3 2024-02-07 13:11 UTC

This package is auto-updated.

Last update: 2024-04-07 13:44:41 UTC


README

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

This is the standard Laravel form components package for Andach Limited. It helps us keep our apps all consistently formatted and branded. It is not likely to be of use to most people in its current state, but has been released open source in the hope that it will help some people learn and understand how to make their own similar packages.

Installation

You can install the package via composer:

composer require andach/laravel-view-components

You can publish the config with:

php artisan view-components:install

And if desired, can publish the views with:

php artisan vendor:publish --tag=view-components-views

The config file can then be edited to point the views towards your local copy to modify them if needed.

Editing Tailwind Config

To use vite, edit your tailwind.config.js file to include the following:

module.exports = {
  content: [
    // ..
    "./vendor/andach/laravel-view-components/src/Components/*.php",
    "./vendor/andach/laravel-view-components/resources/views/**/*.blade.php"
  ],
  // ...
}

Testing

composer test

License

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