1 | <?php namespace Arcanesoft\Core\Http\Controllers; |
||
9 | abstract class AdminController extends Controller |
||
10 | { |
||
11 | /* ----------------------------------------------------------------- |
||
12 | | Constructor |
||
13 | | ----------------------------------------------------------------- |
||
14 | */ |
||
15 | |||
16 | /** |
||
17 | * Instantiate the controller. |
||
18 | */ |
||
19 | public function __construct() |
||
27 | |||
28 | /* ----------------------------------------------------------------- |
||
29 | | SEO Methods |
||
30 | | ----------------------------------------------------------------- |
||
31 | */ |
||
32 | |||
33 | /** |
||
34 | * Init SEO. |
||
35 | */ |
||
36 | private function initSeo() |
||
41 | |||
42 | /* ----------------------------------------------------------------- |
||
43 | | Breadcrumbs Methods |
||
44 | | ----------------------------------------------------------------- |
||
45 | */ |
||
46 | |||
47 | /** |
||
48 | * Get the breadcrumbs home item (root). |
||
49 | * |
||
50 | * @return array |
||
51 | */ |
||
52 | protected function getBreadcrumbsHomeItem() |
||
59 | |||
60 | /* ----------------------------------------------------------------- |
||
61 | | Views Methods |
||
62 | | ----------------------------------------------------------------- |
||
63 | */ |
||
64 | |||
65 | /** |
||
66 | * Display the view. |
||
67 | * |
||
68 | * @param string $name |
||
69 | * @param array $data |
||
70 | * |
||
71 | * @return \Illuminate\View\View |
||
72 | */ |
||
73 | protected function view($name, array $data = []) |
||
79 | |||
80 | /** |
||
81 | * Do random stuff before rendering view. |
||
82 | */ |
||
83 | protected function beforeViewRender() |
||
87 | } |
||
88 |