PHP code example of exmachina / laravel-route-js

1. Go to this page and download the library: Download exmachina/laravel-route-js 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/ */

    

exmachina / laravel-route-js example snippets


ExMachina\LaravelRouteJs\Providers\JsRoutesServiceProvider::class

php artisan vendor:publish --provider="ExMachina\LaravelRouteJs\Providers\JsRoutesServiceProvider"
shell
php artisan js-route:generate
javascript
Route.get('welcome');