@@ -34,14 +34,14 @@ discard block |
||
34 | 34 | $grid->column('created_at', trans('admin.created_at')); |
35 | 35 | $grid->column('updated_at', trans('admin.updated_at')); |
36 | 36 | $grid->column('my'); |
37 | - $grid->actions(function (Grid\Displayers\Actions $actions) { |
|
37 | + $grid->actions(function(Grid\Displayers\Actions $actions) { |
|
38 | 38 | if ($actions->getKey() == 1) { |
39 | 39 | $actions->disableDelete(); |
40 | 40 | } |
41 | 41 | }); |
42 | 42 | |
43 | - $grid->tools(function (Grid\Tools $tools) { |
|
44 | - $tools->batch(function (Grid\Tools\BatchActions $actions) { |
|
43 | + $grid->tools(function(Grid\Tools $tools) { |
|
44 | + $tools->batch(function(Grid\Tools\BatchActions $actions) { |
|
45 | 45 | $actions->disableDelete(); |
46 | 46 | }); |
47 | 47 | }); |
@@ -65,10 +65,10 @@ discard block |
||
65 | 65 | $show->field('id', 'ID'); |
66 | 66 | $show->field('username', trans('admin.username')); |
67 | 67 | $show->field('name', trans('admin.name')); |
68 | - $show->field('roles', trans('admin.roles'))->as(function ($roles) { |
|
68 | + $show->field('roles', trans('admin.roles'))->as(function($roles) { |
|
69 | 69 | return $roles->pluck('name'); |
70 | 70 | })->label(); |
71 | - $show->field('permissions', trans('admin.permissions'))->as(function ($permission) { |
|
71 | + $show->field('permissions', trans('admin.permissions'))->as(function($permission) { |
|
72 | 72 | return $permission->pluck('name'); |
73 | 73 | })->label(); |
74 | 74 | $show->field('created_at', trans('admin.created_at')); |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | $form->image('avatar', trans('admin.avatar')); |
103 | 103 | $form->password('password', trans('admin.password'))->rules('required|confirmed'); |
104 | 104 | $form->password('password_confirmation', trans('admin.password_confirmation'))->rules('required') |
105 | - ->default(function ($form) { |
|
105 | + ->default(function($form) { |
|
106 | 106 | return $form->model()->password; |
107 | 107 | }); |
108 | 108 | |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | $form->display('created_at', trans('admin.created_at')); |
115 | 115 | $form->display('updated_at', trans('admin.updated_at')); |
116 | 116 | |
117 | - $form->saving(function (Form $form) { |
|
117 | + $form->saving(function(Form $form) { |
|
118 | 118 | if ($form->password && $form->model()->password != $form->password) { |
119 | 119 | $form->password = bcrypt($form->password); |
120 | 120 | } |