From 86a6987af4f3f1e2aef512b76811f70c5e6e8682 Mon Sep 17 00:00:00 2001 From: Mateja Date: Sat, 17 Oct 2020 16:27:52 +0200 Subject: Frontend work --- app/Http/Controllers/PagesController.php | 37 ++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 16 deletions(-) (limited to 'app/Http/Controllers/PagesController.php') diff --git a/app/Http/Controllers/PagesController.php b/app/Http/Controllers/PagesController.php index 2ccafc8..8a3cfcc 100644 --- a/app/Http/Controllers/PagesController.php +++ b/app/Http/Controllers/PagesController.php @@ -6,27 +6,32 @@ use Illuminate\Http\Request; class PagesController extends Controller { - public function index() + public function index(Request $request) { return view('pages.index'); } - public function services() + public function sponsoring(Request $request) { - //$title = 'Some title'; - //return view('pages.index', compact('title')); - $data = [ - 'title' => 'Services', - 'services' => ['Web design', 'Programming', 'SEO'] - ]; - return view('pages.services')->with($data); + return view('pages.sponsoring'); } - public function about() - { - //$title = 'About'; - //return view('pages.index')->with('title', $title); - $data = ['title' => 'About']; - return view('pages.index')->with($data); - } + //public function services() + //{ + ////$title = 'Some title'; + ////return view('pages.index', compact('title')); + //$data = [ + //'title' => 'Services', + //'services' => ['Web design', 'Programming', 'SEO'] + //]; + //return view('pages.services')->with($data); + //} + + //public function about() + //{ + ////$title = 'About'; + ////return view('pages.index')->with('title', $title); + //$data = ['title' => 'About']; + //return view('pages.index')->with($data); + //} } -- cgit v1.2.3