PHP code example of gearbox-solutions / enum-converter-laravel

1. Go to this page and download the library: Download gearbox-solutions/enum-converter-laravel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

gearbox-solutions / enum-converter-laravel example snippets


return [
    /*
     * relative paths from the project root
     */
    'enum_paths' => [
        'app/Enums' => 'resources/js/types/enums',
        // 'input/folder' => 'output/folder'
    ],

    /*
     * extension to use for the enum files
     */
    'enum_extension' => '.ts',

    /*
     * Enable File hash check
     * - adds a hash check to determine if a file has changed to speed up performance
     */
    'enable_file_hash_check' => true,
];
bash
php artisan vendor:publish --tag="enum-converter-laravel-config"