A latest enterprise version with laravel 10 is not working with me.
Trying to access array offset on value of type bool
public function admin_geo_parts()
{
$database = $this->_getDatabaseConnection();
$config = config('grocerycrud');
$crud = new GroceryCrud($config, $database);
// Don't forget those two below lines if you are
// using CSRF protection (enabled by default on Laravel 10)
$crud->setCsrfTokenName('_token');
$crud->setCsrfTokenValue(csrf_token());
$crud->setTable('parts');
$crud->setSubject('Customer', 'Customers');
$output = $crud->render();
return $this->_showOutput($output);
}
In some cases I use views (my database is postgres) and set the property $crud->setPrimaryKey, only in one case it did not work for me.
so check the model and add these lines for testing:
if (!$primaryKeyData){
$primaryKeyData = array(‘attname’ => ‘id’);
}
I make sure that the “primary key” of the views is the id field