PHP code example of based / momentum-trail

1. Go to this page and download the library: Download based/momentum-trail 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/ */

    

based / momentum-trail example snippets


return [
    'output' => [
        'routes' => resource_path('scripts/routes/routes.json'),
        'typescript' => resource_path('scripts/types/routes.d.ts'),
    ],
];

php artisan trail:generate
bash
php artisan vendor:publish --tag=trail-config