From 9c4ac5d1f5d1474e5def6c67e1e0989ad2f08dbe Mon Sep 17 00:00:00 2001 From: Mateja Date: Wed, 7 Oct 2020 22:39:42 +0200 Subject: Some work and npm install for compiling resources. --- app/Http/Controllers/PagesController.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'app') 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); } } -- cgit v1.2.3