modules init/deactivate, modules migrations

This commit is contained in:
2024-09-23 12:50:50 +03:00
parent f20ba63277
commit 9e2f7cd9e3
20 changed files with 304 additions and 32 deletions

View File

@ -12,6 +12,7 @@ use Illuminate\Database\Eloquent\Model;
* @property string label
* @property string url
* @property int status
* @property string slug
* @method static find($id)
*/
@ -21,7 +22,7 @@ class Menu extends Model
const ACTIVE_STATUS = 1;
protected $table = 'menu';
protected $fillable = ['parent_id', 'icon_file', 'icon_font', 'label', 'url', 'status'];
protected $fillable = ['parent_id', 'icon_file', 'icon_font', 'label', 'url', 'status', 'slug'];
protected array $dates = ['deleted_at'];
public static function labels(): array
@ -33,6 +34,7 @@ class Menu extends Model
'icon_font' => 'Иконка',
'url' => 'URL',
'status' => 'Статус',
'slug' => 'Slug',
];
}