I have the following funcion edit
in my controller
public function edit($id){
$ficha= Data::findOrFail($id);
return view('ficha.edit')->with('ficha', $ficha);
}
This sends the variable $ficha
to 'ficha.edit', but I would like to know how to send the value of the variable $ficha
to other views of my project from the same function.