Problem with spatie/laravel-tags #309
Replies: 2 comments 1 reply
-
Hello @quiquegarcia I think I didn't fully understand, problem is with I think the problem here relies on the slug beeing translatable. Are you using backpack slug traits ? use Backpack\CRUD\app\Models\Traits\SpatieTranslatable\Sluggable;
use Backpack\CRUD\app\Models\Traits\SpatieTranslatable\SluggableScopeHelpers; Best, |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi. Due to not activity on many years i will close this discussion, if there is needed feel free to reopen or create a new one. Cheers. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Someone has tried to make a CRUD panel for a Tag Model extending Spatie\Tags\Tag?
To create a CRUD I needed to use CRUDTrait, so I extended from
Spatie\Tags\Tag
Model:App\Models\Tag.php
And set it up my CRUD Controller:
app\Http\Controllers\Admin\TagCrudController.php
This resulted in a properly rendered CRUD Panel

But when I try to create or update a Tag, translated attributes like name becomes null:
I noticed that when I manually update the form with the input attribute
name="name"
toname="name[es]"
update and creation works well.This can be a bug or I'm missing something?
Beta Was this translation helpful? Give feedback.
All reactions