Laravel obtenha os dados e exibi -los na lâmina html falhou

//Change

return view('dashboard/projects-interests', compact($messages));

//to

return view('dashboard/projects-interests', compact('messages'));
SAMER SAEID