spatie / laravel-tags

Add tags and taggable behaviour to your Laravel app

Home Page:https://freek.dev/609-an-opinionated-tagging-package-for-laravel-apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Name/Slug set to null with Laravel Backpack

alancwoo opened this issue · comments

I am trying to set up a Laravel Backpack CRUD controller so the site's user can manage tags from the backpack admin panel.

However, whenever the tag is saved, name and slug are saved as null.

I've tested in a fresh Laravel ^10.15 install with spatie/laravel-tags ^4.5, spatie/laravel-translatable ^6.5 and backpack/crud ^6.2.

Creating a simple model and crud controller works fine, but the Tag is always setting name and slug (translatable fields) to null.

This happens regardless of overriding the HasTranslations trait for the CRUD controller or not. I created a discussion on the backpack repo but after testing with a fresh install and example model with translatable fields and having success, I'm wondering if the issue lies here?