andach / laravel-view-components
This is my package laravel-view-components
Installs: 671
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:Blade
Requires
- php: ^8.1
- illuminate/contracts: ^10.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8
- orchestra/testbench: ^8.8
- phpunit/phpunit: ^10.0
README
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.