Try this.
foreach ($filelist as $page) {
Route::get(
$page,
function() use ($page)
{
return View::make( $page );
}
);
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community