Route::get('about', ['uses' => 'PagesController@display', 'page' => 'about']);
public function display(\Illuminate\Http\Request $request)
{
$page = $request->route()->getAction()['page'];
...
}
One way to pass that hardcoded data via the route.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community