php - undefined constant laravel-8 counting data from database

I wanted to call the number of files uploaded by the user through its id but it shows that the fileuploads is not defined. Can aynone help me on this?
Here is the function for it
public function dashboard()
{
$dashboardTitle = "Dashboard";
$isCurrent = "dashboard";
$filesUploadCount = Fileupload::where('user_id', Auth::user()->id)
->count();
return view('dashboard.index', [
'dashboardTitle' => $dashboardTitle,
'isCurrent' => $isCurrent,
'filesUploadCount' => $filesUploadCount
]
);
}
And I was printing it with this command{{ count(fileuploads) }}
But it returns an undefined constant Picture of error
Can anyone help?
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: an exception occurred in the driver: could not find driver
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.