/**
  * Define the routes for the application.
  *
  * @param  \Illuminate\Routing\Router  $router
  * @return void
  */
 public function map(Router $router)
 {
     $router->group(['namespace' => $this->namespace], function ($router) {
         require app_path('Http/routes.php');
     });
     $router->bind('license', function ($url) {
         return License::where('url', '=', $url)->first();
     });
 }
 public function choose()
 {
     $licenses = License::all();
     return view('index')->with('licenses', $licenses);
 }