skegel13 / larablocks
A simple package for creating Laravel modules compatible with the Laravel IDEA plugin
Fund package maintenance!
skegel13
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
- pestphp/pest: ^2.20
- pestphp/pest-plugin-arch: ^2.5
- pestphp/pest-plugin-laravel: ^2.0
- spatie/laravel-ray: ^1.26
README
A simple package for creating Laravel modules compatible with the Laravel IDEA plugin
This package was inspired by the Modular Laravel series by Mateus GuimarĂ£es on Laracasts.
Installation
You can install the package via composer:
composer require skegel13/larablocks
You can publish the stubs with:
php artisan vendor:publish --tag="larablocks-stubs"
Usage
Create a block with:
# Create block php artisan make:block Blog # Delete block php artisan make:block Blog --delete
If you are using the Laravel IDEA plugin, update your module settings to use "Directory modules".
Then, set the "Sources path" to "src" and the "Root directory path" to "Modules".
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.