samedi 11 novembre 2017

Reproducing error by knowing URL used by user - Laravel 5.5

I have several places in my code which cause errors. Usually it is Call to a member function functionDefined_in_Model() on null at /var/www/myappname/app/Http/Controllers/PerceptsController.php:1298)

In the code I have this:

public function report_on_entity($id, $pivoted = 'alpha') {
$object = Entity::find($id);
$standpoints = $object->functionDefined_in_Model()->paginate(10);

This code produces Call to a member function functionDefined_in_Model() on null which is impossible as far as I know as the URL is defined only by existing Entity models.

What I need

Is that possible to get an error feedback with the URL which was hit by my user?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2ABx2Oz
via IFTTT

Aucun commentaire:

Enregistrer un commentaire