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