Laravel - Collections - Method Find

The find method returns the model that has a primary key matching the given key. If $key is a model instance, find will attempt to return a model matching the primary key. If $key is an array of keys, find will return all models which have a primary key in the given array:

    
    $users = User::all();
    
    $user = $users->find(1);