@@ -35,19 +35,19 @@ 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 | }); |
| 49 | 49 | |
| 50 | - $grid->filter(function ($filter) { |
|
| 50 | + $grid->filter(function($filter) { |
|
| 51 | 51 | $filter->disableIdFilter(); |
| 52 | 52 | $filter->ilike('username', __('Nome ou e-mail do professor')); |
| 53 | 53 | }); |
@@ -71,10 +71,10 @@ discard block |
||
| 71 | 71 | $show->field('id', 'ID'); |
| 72 | 72 | $show->field('username', trans('admin.username')); |
| 73 | 73 | $show->field('name', trans('admin.name')); |
| 74 | - $show->field('roles', trans('admin.roles'))->as(function ($roles) { |
|
| 74 | + $show->field('roles', trans('admin.roles'))->as(function($roles) { |
|
| 75 | 75 | return $roles->pluck('name'); |
| 76 | 76 | })->label(); |
| 77 | - $show->field('permissions', trans('admin.permissions'))->as(function ($permission) { |
|
| 77 | + $show->field('permissions', trans('admin.permissions'))->as(function($permission) { |
|
| 78 | 78 | return $permission->pluck('name'); |
| 79 | 79 | })->label(); |
| 80 | 80 | $show->field('created_at', trans('admin.created_at')); |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | $form->image('avatar', trans('admin.avatar')); |
| 109 | 109 | $form->password('password', trans('admin.password'))->rules('required|confirmed'); |
| 110 | 110 | $form->password('password_confirmation', trans('admin.password_confirmation'))->rules('required') |
| 111 | - ->default(function ($form) { |
|
| 111 | + ->default(function($form) { |
|
| 112 | 112 | return $form->model()->password; |
| 113 | 113 | }); |
| 114 | 114 | |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | $form->display('created_at', trans('admin.created_at')); |
| 121 | 121 | $form->display('updated_at', trans('admin.updated_at')); |
| 122 | 122 | |
| 123 | - $form->saving(function (Form $form) { |
|
| 123 | + $form->saving(function(Form $form) { |
|
| 124 | 124 | if ($form->password && $form->model()->password != $form->password) { |
| 125 | 125 | $form->password = Hash::make($form->password); |
| 126 | 126 | } |