I am new to laravel.
I am trying to create an update before return view but i am getting Property [Video_Views] does not exist on this collection instance.
This is my code
$vidurl="WZzZdBjnjBwbMJh";
$curvid = videos::where('Video_URL', '=', $vidurl)->get();
$viewsarray = array($curvid->Video_Views);
but when i remove $viewsarray = array($curvid->Video_Views);
and let my return view work, i can get every information from $curvid into the page. Meaning my code works fine for selecting and display into the return view page. But i want to perform an update before the returnview page but for some reason the Video_Views in $viewsarray = array($curvid->Video_Views);
doesnt exist
These are the columns in mysql table called videos
I can select all these in the return view page but i can't retrieve any info before the returnview page
Any help would be nice!