1 | <?php |
||
5 | class AdminController extends Controller |
||
6 | { |
||
7 | protected $data = []; // the information we send to the view |
||
8 | |||
9 | /** |
||
10 | * Create a new controller instance. |
||
11 | */ |
||
12 | public function __construct() |
||
16 | |||
17 | /** |
||
18 | * Show the admin dashboard. |
||
19 | * |
||
20 | * @return \Illuminate\Http\Response |
||
21 | */ |
||
22 | public function dashboard() |
||
28 | |||
29 | /** |
||
30 | * Redirect the admin dashboard. |
||
31 | * The '/admin' route is not to be used, because it breaks the menu's active state. |
||
32 | * |
||
33 | * @return \Illuminate\Http\Response |
||
34 | */ |
||
35 | public function redirectToDashboard() |
||
39 | } |
||
40 |