Only
about
returns view from route. Other routes fire
PagesController
appropriate methods
Route::get('/', 'PagesController@index');
Route::get('/about', function () {
return view('pages.about');
});
Route::get('/services', 'PagesController@services');
Route::get('/contact', 'PagesController@contactUs');
PagesController
methods
class PagesController extends Controller
{
public function index() {
return view('pages.index');
}
public function about() {
return view('pages/about');
}
public function services() {
return view('pages/services');
}
public function contactUs() {
return 'Under Construction';
}
}