from my route i need to pass the value of $page to controller
route:
$app->get('/show/{page}', function($page) use ($app) {
$controller = $app->make('App\Http\Controllers\PageController');
return $controller->index();
});
controller:
public static function index(){
/** how can I get the value of $page form here so i can pass it to the view **/
return view('index')->with('page', $page);
}