entyy_id add to tag migration

This commit is contained in:
2024-11-21 15:53:52 +03:00
parent 62eff81213
commit 1bc7662be0
11 changed files with 22 additions and 0 deletions

View File

@ -52,6 +52,8 @@ class TagModule extends Module
{
$model = new Tag();
$model->entity = $entity;
Debug::dd($request->post());
$model->entity_id = 1;
$model->label = $request->post('tag');
$model->status = Tag::ACTIVE_STATUS;
$model->slug = Slug::createSlug($request->post('tag'), $model);