New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
an issue with spatie/laravel-tags #2
Comments
Hi, I can't seem to reproduce this in a test... laravel-unique-translation/tests/UniqueTranslationTest.php Lines 137 to 147 in 3b0f7fc
I also tried to create a second dummy model which has a "duplicate" $this->model = Model::create([
'slug' => [
'en' => 'slug-en',
'nl' => 'slug-nl',
],
'name' => [
'en' => 'name-en',
'nl' => 'name-nl',
],
'other_field' => 'foobar',
]);
Model::create([
'slug' => [
'en' => 'another-slug-en',
'nl' => 'another-slug-nl',
],
'name' => [
'en' => 'another-name-en',
'nl' => null,
],
]);
$rules = [
'slug.*' => "{$this->rule}:{$this->table},slug,{$this->model->id}",
'name.*' => UniqueTranslationRule::for($this->table)->ignore($this->model->id),
];
$this->createRoute('test-array', $rules);
$this->post('test-array', [
'slug' => ['en' => 'slug-en', 'nl' => 'slug-nl'],
'name' => ['en' => 'name-en', 'nl' => null],
])->assertStatus(200); Can you give me some more info/code to investigate? |
thanx for the test 👍
its a package am building to facilitate working with the spatie/tags, once done i will ping u to test directly on it. update it seems that |
am not sure if its an issue with the https://github.com/spatie/laravel-tags package or something is missing from the validation package,
but here is what i have
the db name column i will update is
and will be replaced with
but i keep getting the error that the item already exists in the db, so maybe u can help me with this one
The text was updated successfully, but these errors were encountered: