obydul/larable

Collection of morphable features and packages for Laravel application.

v1.4.1 2023-03-25 18:51 UTC

This package is auto-updated.

Last update: 2024-10-26 09:34:04 UTC


README

Collection of morphable features and packages for Laravel application.

CI

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.