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';
    }
}
by Valeri Tandilashvili
4 years ago
Laravel
routes
Laravel From Scratch
0
Pro tip: use ```triple backticks around text``` to write in code fences