Trying to get property of non-object error on laravel 5.4

Welcome to StackOverflow, yobab77! There’s a wonderful help article on how to ask questions here, that may help you get better assistance in the future. ErrorException Trying to get property of non-object (View: C:\xampp\htdocs\bgcbus\resources\views\usercrud\sendView.blade.php) This error indicates that the bug is coming from your sendView.blade.php view file, which you’ve stated has the following content: TO … Read more

Removing eval from PHP function [closed]

As mentioned, there is absolutely no reason to use eval here. What you need to do is build up an array of values that you want to pass in, then decide if it needs to be a new user or an update. public function alterUser() { $name = $_POST[‘name’]; //required field $contact = $_POST[‘contact’]; //required … Read more