Multiple entries in Laravel
Everyone knows the find() method, right?
$user = User::find(1);
I’m quite surprised how few people know about that it can accept multiple IDs as an array:
$users = User::find([1,2,3]);
Everyone knows the find() method, right?
$user = User::find(1);
I’m quite surprised how few people know about that it can accept multiple IDs as an array:
$users = User::find([1,2,3]);