-
Notifications
You must be signed in to change notification settings - Fork 0
/
Administration.php
49 lines (42 loc) · 1.21 KB
/
Administration.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/*
* ProVision Administration, http://ProVision.bg
* Author: Venelin Iliev, http://veneliniliev.com
*/
namespace ProVision\Pages;
use Kris\LaravelFormBuilder\Form;
use ProVision\Administration\Contracts\Module;
class Administration implements Module
{
public function routes($module)
{
\Route::resource('pages', 'ProVision\Pages\Http\Controllers\Admin\PagesController');
}
public function dashboard($module)
{
//
}
public function menu($module)
{
\AdministrationMenu::addModule(trans('pages::admin.module_name'), [
'route' => \Administration::routeName('pages.index'),
'icon' => 'file-text-o'
], function ($menu) {
$menu->addItem(trans('pages::admin.list'), [
'route' => \Administration::routeName('pages.index')
])->addItem(trans('pages::admin.add'), [
'route' => \Administration::routeName('pages.create')
]);
});
}
/**
* Add settings in administration panel
* @param $module
* @param Form $form
* @return mixed
*/
public function settings($module, Form $form)
{
// TODO: Implement settings() method.
}
}