aboutsummaryrefslogtreecommitdiff
path: root/app/Http/Controllers/PagesController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Http/Controllers/PagesController.php')
-rw-r--r--app/Http/Controllers/PagesController.php13
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);
}
}