Fix brand and service on CRUD
This commit is contained in:
parent
9a0a6237e5
commit
567e678f03
2 changed files with 3 additions and 12 deletions
|
|
@ -44,17 +44,6 @@ class Brand extends Model
|
|||
CrudAction::create(),
|
||||
CrudAction::update()
|
||||
]
|
||||
],
|
||||
'services' => [
|
||||
'label' => Str::ucfirst(Str::plural(trans('models.classes.services'))),
|
||||
'type' => CrudType::belongsToMany(),
|
||||
'belongsToMany' => Service::class,
|
||||
'belongsToManyLabel' => 'name',
|
||||
'actions' => [
|
||||
CrudAction::view(),
|
||||
CrudAction::create(),
|
||||
CrudAction::update(),
|
||||
]
|
||||
]
|
||||
];
|
||||
parent::__construct($attributes);
|
||||
|
|
|
|||
|
|
@ -54,7 +54,9 @@ class Service extends Model
|
|||
'belongsTo' => Brand::class,
|
||||
'actions' => [
|
||||
CrudAction::viewAny(),
|
||||
CrudAction::view()
|
||||
CrudAction::view(),
|
||||
CrudAction::create(),
|
||||
CrudAction::update()
|
||||
]
|
||||
],
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue