I have a view called show, to which I want to put a select, defined in the variable $ usersOptions, the problem is that this variable only returns to user.index, there is some way that you can also return it to user .show?
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$usuarios=usuarios::orderBy('id','DESC')->paginate(10);
$usuariosOpciones =usuarios::pluck('usuario_ad', 'user_id')->unique();
return view('usuario.index',compact('usuarios','usuariosOpciones'));
}