1. Go to this page and download the library: Download jaybizzle/route-binder 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/ */
namespace App\Http\Routes;
use Illuminate\Contracts\Routing\Registrar;
use Illuminate\Routing\Router;
use LaravelBA\RouteBinder\Bindings;
use LaravelBA\RouteBinder\Routes;
class FooRoutes implements Routes, Bindings
{
/**
* This is what I meant with #3 up there.
* Completely optional, but highly recommended.
*/
const INDEX = 'foo.index';
/**
* This one is eturn view('hello');
}]);
}
}