ifox
10/09/2021, 5:38 PMuser
10/09/2021, 5:38 PMuser
10/09/2021, 5:38 PMuser
10/09/2021, 5:39 PMuser
10/09/2021, 5:41 PMifox
10/09/2021, 5:41 PMifox
10/09/2021, 5:42 PMuser
10/09/2021, 5:42 PMuser
10/09/2021, 5:43 PMifox
10/09/2021, 5:44 PMifox
10/09/2021, 5:45 PMuser
10/09/2021, 5:52 PMSami
10/09/2021, 7:46 PMdeleted_at column? Currently my index page throws column not found error even though I set $forceDeleting to true in both model and translation modelpboivin
10/09/2021, 8:45 PMSoftDeletes trait on the base Model classSami
10/09/2021, 9:06 PMcreateDefaultTableFields helper to not create deleted_at columnpboivin
10/09/2021, 9:07 PMsoftDeletes() I thinkifox
10/09/2021, 9:09 PMSami
10/09/2021, 9:10 PMSami
10/09/2021, 9:10 PMifox
10/09/2021, 9:11 PMSami
10/09/2021, 9:13 PMDaniel Jenikovský
10/10/2021, 12:08 AMphp
...
public function run() {
$repository = app()->make(App\Repositories\WorkshopRepository::class); // doesn't matter how it's obtained, behaviour is the same
$repository->create(["title" => ["cs" => "Testing"], "slug" => ["cs" => "testing"]]);
}
...
The problem happens only when the seeder is being called from db:seed --class=... command. When I try to run the command by following the exact same logic in php artisan tinker, it works correctly.
What happens
Internal error (Grammar::parametrize()), happens 'cause the slug entry is still present in the array that is retrieved by getAttributesForInsert() in the Laravel's model class in performInsert() which is not the case when run from tinker instance/or web.
Laravel: 8.63
Twill CMS: 2.5.2
Should this be posted as an issue or am I missing something here? Thank you.Sami
10/10/2021, 1:30 PM"publish" => false in my indexOptions in Controller but I still get an SQL error that published column was not found.Sami
10/10/2021, 1:31 PMifox
10/10/2021, 1:32 PMSami
10/10/2021, 1:32 PMAdd [cmsSaveType] to fillable property to allow mass assignment on [App\Models\ProductOptionCategoryifox
10/10/2021, 1:32 PMSami
10/10/2021, 1:33 PMifox
10/10/2021, 1:33 PMSami
10/10/2021, 1:40 PM