If you want to group result by some condition which isnβt a direct column in your database, you can do that by providing a closure function.
$users = User::all()->groupBy(function($item) {
return $item->created_at->format('Y-M-D');
});
If you want to group result by some condition which isnβt a direct column in your database, you can do that by providing a closure function.
$users = User::all()->groupBy(function($item) {
return $item->created_at->format('Y-M-D');
});
For further actions, you may consider blocking this person and/or reporting abuse
Β
Thanks for visiting DEV, weβve worked really hard to cultivate this great community and would love to have you join us. If youβd like to create an account, you can sign up here.
Himanshupal0001 -
Ryan Cooke -
Falcon -
Ram Maheshwari β‘ -
Once suspended, sandrocagara will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, sandrocagara will be able to comment and publish posts again.
Once unpublished, all posts by sandrocagara will become hidden and only accessible to themselves.
If sandrocagara is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Sandro Jhuliano Cagara.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community π©βπ»π¨βπ» safe. Here is what you can do to flag sandrocagara:
Unflagging sandrocagara will restore default visibility to their posts.
Latest comments (0)