SyntaxFix
Write A Post
Hire A Developer
Questions
You can actually do this within the query.
$results = Project::orderBy('name')->get();
This will return all results with the proper order.