Laravel mendapatkan data dan menampilkannya di html blade gagal

//Change

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

//to

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