this modules i'm made for Jennaira De Rafaella

1.1.0 2024-12-02 17:41 UTC

This package is auto-updated.

Last update: 2025-04-30 18:40:35 UTC


README

jennairaderafaella/inlite is a Laravel package designed to simplify maintenance with a lightweight version. It can be combined with other JavaScript frameworks, including Livewire. Additionally, this module can automatically initialize routes based on your preferences without interfering with other route functions. This package follows the Laravel MVC pattern and also supports the repository and/or service pattern methods. It is fully compatible with Laravel 11.

Install

To install using Composer, run the following command:

composer require jennairaderafaella/inlite

Currently, Composer installation is still being prepared.

Configuration

For Laravel 11:

To use the package, you can manually register it. Locate the bootstrap/provider.php file and add the following lines:

    return [
        App\Providers\AppServiceProvider::class,
        \Jennairaderafaella\Inlite\InliteServiceProvider::class
    ];

For Laravel 10:

Locate the config/app.php file and add the service provider in the appropriate section:

    'providers' => ServiceProvider::defaultProviders()->merge([

    /*
    * Application Service Providers...
    */
    Jennairaderafaella\Inlite\InliteServiceProvider::class

    ])->toArray(),

First Used

Module Initialization:

To initialize the module, run the following command in your terminal:

php artisan jenna:install

Module Initialization:

To add a new module, execute this command:

php artisan jenna:create inlite namemodule

Creating a Separate Folder for API and Views:

Sometimes, a module requires a dedicated folder to separate APIs and views. To achieve this, run the command below:

php artian jenna:create inlite/api namemodule

Auto build js configuration

For Laravel Mix to perform an automatic build, configure the webpack.mix.js file and add the following line of code:

'resources/views/modules/**/**/*.js'

For using Vite during development, a best and easy-to-apply approach is still being explored.

License

The MIT License (MIT). Please see License File for more information.