@@ -98,5 +98,5 @@ |
||
98 | 98 | 'filter_placeholder' => 'Filtrele', |
99 | 99 | ], |
100 | 100 | |
101 | - 'menu_titles' => [], |
|
101 | + 'menu_titles' => [], |
|
102 | 102 | ]; |
@@ -88,14 +88,14 @@ discard block |
||
88 | 88 | $grid->created_at(trans('admin.created_at')); |
89 | 89 | $grid->updated_at(trans('admin.updated_at')); |
90 | 90 | |
91 | - $grid->actions(function (Grid\Displayers\Actions $actions) { |
|
91 | + $grid->actions(function(Grid\Displayers\Actions $actions) { |
|
92 | 92 | if ($actions->getKey() == 1) { |
93 | 93 | $actions->disableDelete(); |
94 | 94 | } |
95 | 95 | }); |
96 | 96 | |
97 | - $grid->tools(function (Grid\Tools $tools) { |
|
98 | - $tools->batch(function (Grid\Tools\BatchActions $actions) { |
|
97 | + $grid->tools(function(Grid\Tools $tools) { |
|
98 | + $tools->batch(function(Grid\Tools\BatchActions $actions) { |
|
99 | 99 | $actions->disableDelete(); |
100 | 100 | }); |
101 | 101 | }); |
@@ -117,10 +117,10 @@ discard block |
||
117 | 117 | $show->id('ID'); |
118 | 118 | $show->username(trans('admin.username')); |
119 | 119 | $show->name(trans('admin.name')); |
120 | - $show->roles(trans('admin.roles'))->as(function ($roles) { |
|
120 | + $show->roles(trans('admin.roles'))->as(function($roles) { |
|
121 | 121 | return $roles->pluck('name'); |
122 | 122 | })->label()->setEscape(false); |
123 | - $show->permissions(trans('admin.permissions'))->as(function ($permission) { |
|
123 | + $show->permissions(trans('admin.permissions'))->as(function($permission) { |
|
124 | 124 | return $permission->pluck('name'); |
125 | 125 | })->label()->setEscape(false); |
126 | 126 | $show->created_at(trans('admin.created_at')); |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | $form->image('avatar', trans('admin.avatar')); |
146 | 146 | $form->password('password', trans('admin.password'))->rules('required|confirmed'); |
147 | 147 | $form->password('password_confirmation', trans('admin.password_confirmation'))->rules('required') |
148 | - ->default(function ($form) { |
|
148 | + ->default(function($form) { |
|
149 | 149 | return $form->model()->password; |
150 | 150 | }); |
151 | 151 | |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | $form->display('created_at', trans('admin.created_at')); |
158 | 158 | $form->display('updated_at', trans('admin.updated_at')); |
159 | 159 | |
160 | - $form->saving(function (Form $form) { |
|
160 | + $form->saving(function(Form $form) { |
|
161 | 161 | if ($form->password && $form->model()->password != $form->password) { |
162 | 162 | $form->password = bcrypt($form->password); |
163 | 163 | } |