Laravel: Return all models with a primary key from array

Published April 2, 2020 • 1 min read

Very simple and super practical:

$tags = Tag::all();
$tags = Tag::findMany([1,2]);
laravel

Join my mailing list