coreui / coreui-free-laravel-admin-template

CoreUI Free Laravel Bootstrap Admin Template
https://coreui.io/laravel/
MIT License
635 stars 358 forks source link

Problem with the BREAD system #39

Open hydranteractive opened 4 years ago

hydranteractive commented 4 years ago

Hello,

We have a strange problem creating BREADs. We are able to create them by associating them with the right table. Once the form it is created, we can see it with the show option, but if we try access it through resources to view the table or to add records, the program crashes and takes us to the login page of the dashboard, without any warning or undertandable error messe.

The example provided is working correctly, also we have seen that the fields listed in it, are less than the fields in the database.

What could be the problem?

Regards,

hydranteractive commented 4 years ago

The problem seems to be happening in this line of ResourceService.php

[2020-07-22 14:11:14] local.ERROR: Undefined property: stdClass::$id {"userId":1,"exception":"[object] (ErrorException(code: 0): Undefined property: stdClass::$id at /path to public_html/laravel/app/Services/ResourceService.php:135) [stacktrace]

rakieta2015 commented 4 years ago

I don't know what could be causing the problem. Could you paste the table structure for which you are trying to create BREAD? And the table structure for which you are trying to create relationships.