I'm doing a project in laravel. But he throws me the next mistake.
In my controller I have this:
public function edit($id)
{
$lanifComercial = new PlanifComercial();
$lanifComercial->LABORATORIO = 'LABORATORIO';
return view('Planif_Comercial.Edit',$lanifComercial);
}
but I get the following error:
(2/2) ErrorException Undefined variable: lanifComercial (View: C: \ xampp \ htdocs \ interface-load-soap \ resources \ views \ Planif_Comercial \ Edit.blade.php)
I already appreciate your answers.
Greetings.