What is the difference between these pieces of code. Articles - model
$article = Articles::find($id); $article = Articles::all()->toArray()->get($id);
The first way works in the php page: {{article ['title']}} And the second way is not. When will the second method work and what is the difference between these methods of data extraction?