obydul / larable
Collection of morphable features and packages for Laravel application.
Requires
- laravel/framework: ^9.0|^10.0
Requires (Dev)
- brainmaestro/composer-git-hooks: dev-master
- friendsofphp/php-cs-fixer: ^3.8
- laravel/pint: ^1.7
- mockery/mockery: ^1.5
- orchestra/testbench: ^8.0
- phpunit/phpunit: ^10.0.7
README
Collection of morphable features and packages for Laravel application.
Installation
composer require obydul/larable
Configuration
This step is optional
php artisan vendor:publish --provider="Obydul\\Larable\\LarableServiceProvider" --tag=config
Migrations
You need to publish the migration files for use the package:
php artisan vendor:publish --provider="Obydul\\Larable\\LarableServiceProvider" --tag=migrations
Collections
The available morphable packages/features.
Cleanup Unused Services
Currently, there are 5 services. We will keep adding more services. The chances are good that you will not want them all. In order to avoid shipping these dependencies with your code, you can run the Obydul\Larable\Task\Composer::cleanup
task and specify the services you want to keep in composer.json
:
{ "require": { "obydul/larable": "^1.1" }, "scripts": { "pre-autoload-dump": "Obydul\\Larable\\Task\\Composer::cleanup" }, "extra": { "obydul/larable": [ "Like", "Follow" ] } }
This example will remove all services other than "Like" and "Follow" when composer update
or a fresh composer install
is run.
IMPORTANT: If you add any services back in composer.json
, you will need to remove the vendor/obydul/larable
directory explicitly for the change you made to have effect:
rm -r vendor/obydul/larable
composer update
License
The MIT License (MIT). Please see License File for more information.