You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating to Laravel 11 with PHP version 8.2, the following error appears inside the CRUDController function:
protected function setupCreateOperation()
{
CRUD::setValidation(TreatmentRequest::class);
CRUD::field('name');
/**
* Fields can be defined using the fluent syntax or array syntax:
* - CRUD::field('price')->type('number');
* - CRUD::addField(['name' => 'price', 'type' => 'number']));
*/
}
I've already merged a PR #5481 in CRUD to fix this issue, I will tag a new version in a couple hours when I get to merge some other fixes I have planned.
In the meanwhile I am curious, how you were able to trigger the error ?
Mysql and Sqlite doesn't allow you to create empty tables, so in my head you shouldn't be getting there without atleast one column.
Apparently after some research I found that is possible in pgsql. Is that the case here ?
I will be closing this issue, let me know if you experience issues after I release the new CRUD version later today.
I've already merged a PR #5481 in CRUD to fix this issue, I will tag a new version in a couple hours when I get to merge some other fixes I have planned.
In the meanwhile I am curious, how you were able to trigger the error ?
Mysql and Sqlite doesn't allow you to create empty tables, so in my head you shouldn't be getting there without atleast one column.
Apparently after some research I found that is possible in pgsql. Is that the case here ?
I will be closing this issue, let me know if you experience issues after I release the new CRUD version later today.
Bug report
What I did
After updating to Laravel 11 with PHP version 8.2, the following error appears inside the CRUDController function:
What I expected to happen
??
What happened
Is it a bug in the latest version of Backpack?
After I run
composer update backpack/crud
the bug... is it still there?Yes
Backpack, Laravel, PHP, DB version
When I run
php artisan backpack:version
the output is:PHP VERSION:
The text was updated successfully, but these errors were encountered: