skegel13/larablocks

A simple package for creating Laravel modules compatible with the Laravel IDEA plugin

0.1.0 2024-02-04 04:07 UTC

This package is auto-updated.

Last update: 2024-10-04 05:29:21 UTC


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".

CleanShot 2024-02-03 at 23 06 59@2x

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.