1 |
c66c7237
|
rizir01
|
<?php
|
2 |
|
|
|
3 |
|
|
namespace App\Http\Controllers;
|
4 |
|
|
|
5 |
|
|
use Illuminate\Http\Request;
|
6 |
|
|
|
7 |
|
|
class PagesController extends Controller
|
8 |
|
|
{
|
9 |
|
|
public function index()
|
10 |
|
|
{
|
11 |
|
|
$title = 'Welcome to the MERLOT page';
|
12 |
|
|
//return view('index', compact('title'));
|
13 |
|
|
return view('index') -> with('title', $title);
|
14 |
|
|
}
|
15 |
|
|
|
16 |
|
|
public function info()
|
17 |
|
|
{
|
18 |
|
|
$title = 'Info about MERLOT';
|
19 |
|
|
return view('pages.info') -> with('title', $title);
|
20 |
|
|
}
|
21 |
|
|
|
22 |
|
|
public function services()
|
23 |
|
|
{
|
24 |
|
|
$data = array(
|
25 |
|
|
'title' => 'Services',
|
26 |
|
|
'services' => ['Web design', 'Programming', 'SEO']
|
27 |
|
|
);
|
28 |
|
|
return view('pages.services') -> with($data);
|
29 |
|
|
}
|
30 |
|
|
}
|