diff options
author | Mateja <mail@matejamaric.com> | 2020-10-07 22:39:42 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-10-07 22:39:42 +0200 |
commit | 9c4ac5d1f5d1474e5def6c67e1e0989ad2f08dbe (patch) | |
tree | 3e6f7652b0ab3dc41a3d7e95a53ab7014f7f9d4d /app/Http/Controllers/PagesController.php | |
parent | bbd270805f1020a313d6125e362dfa2309c89ef5 (diff) | |
download | yota-laravel-9c4ac5d1f5d1474e5def6c67e1e0989ad2f08dbe.tar.gz yota-laravel-9c4ac5d1f5d1474e5def6c67e1e0989ad2f08dbe.zip |
Some work and npm install for compiling resources.
Diffstat (limited to 'app/Http/Controllers/PagesController.php')
-rw-r--r-- | app/Http/Controllers/PagesController.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/app/Http/Controllers/PagesController.php b/app/Http/Controllers/PagesController.php index 37faffb..3d65be8 100644 --- a/app/Http/Controllers/PagesController.php +++ b/app/Http/Controllers/PagesController.php @@ -13,11 +13,20 @@ class PagesController extends Controller public function services() { - return view('pages.index'); + //$title = 'Some title'; + //return view('pages.index', compact('title')); + $data = [ + 'title' => 'Services', + 'services' => ['Web design', 'Programming', 'SEO'] + ]; + return view('pages.index')->with($data); } public function about() { - return view('pages.index'); + //$title = 'About'; + //return view('pages.index')->with('title', $title); + $data = ['title' => 'About']; + return view('pages.index')->with($data); } } |