I see the error
Trying to get property of non-object (View: D:\xampp\htdocs\2018\project\resources\views\backend\articles\index.blade.php)
All the tables are currently empty. When i add an article and favorite it via tinker the error is gone. When i move the project to the live production server initially the project would be empty and it would show error to my client. How to solve this?
Your environment
Environment : Localhost XAMPP
Laravel 5.6
Php 7.1
Windows 7
This is how my controller code looks like
And in my view when i do this
I see the error
Trying to get property of non-object (View: D:\xampp\htdocs\2018\project\resources\views\backend\articles\index.blade.php)
All the tables are currently empty. When i add an article and favorite it via tinker the error is gone. When i move the project to the live production server initially the project would be empty and it would show error to my client. How to solve this?
Your environment
Environment : Localhost XAMPP Laravel 5.6 Php 7.1 Windows 7