Link Search Menu Expand Document

Installation (Laravel)

Setup via composer

composer require jinn/laravel

Publish Jinn config file

php artisan vendor:publish --provider="Jinn\Laravel\JinnServiceProvider"

Create Jinn folder structure

Default structure:

jinn 
- def
- gen 

An alternative structure can be configured via config/jinn.php. Further, this guide will use a default configuration. Changing the Jinn configuration should result in corresponding changes to the next steps.

Configure autoload

Edit composer.json, locate autoload section, and add a line as follows:

"autoload": {
    "psr-4": {
        ...
        "JinnGenerated\\": "jinn/gen/" 
    }
}

Then ask the composer to update autoload files:

composer dump-autoload

Next: Getting Started