controller returns plain text & HTML & view
Returns plain text
public function contact() {
        return 'Under Construction';
}
Returns HTML
public function about() {
        return '<h1>About the site</h1>details...';
}
Returns view located at
resources/views/pages/services.blade.php
public function services() {
        return view('pages/services');
}
by Valeri Tandilashvili
4 years ago
Laravel
controllers
Laravel From Scratch
1
Pro tip: use ```triple backticks around text``` to write in code fences