コード例 #1
0
 /**
  * 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();
     });
 }
コード例 #2
0
 public function choose()
 {
     $licenses = License::all();
     return view('index')->with('licenses', $licenses);
 }