PHP code example of jetwaves / laravel-implicit-router

1. Go to this page and download the library: Download jetwaves/laravel-implicit-router 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/ */

    

jetwaves / laravel-implicit-router example snippets


    composer 

    
    $api = app('Jetwaves\LaravelImplicitRouter\Router');
    $api->controller('URI_PREFIX', 'App\Http\Controllers\TestController');
   

    
    public function getShowMeTheMoney(Request $req){
        return '10000 gold';
    }
   

Route::middleware(['test'])->group(function () {
    $api = app('Jetwaves\LaravelImplicitRouter\Router');
    $api->controller('URI_PREFIX', 'App\Http\Controllers\TestController');
});

echo 'starcraft tricks :'