src/Repositories/PeopleRepository.php
public function isFirstnameSurname($firstName, $surname) {
        $result = $this->model
            ->where('first_name', $firstName)
            ->where('surname', $surname)
            ->first()
        ;

        if ($result) {
            return $result->id;
        }

        return false;
    }
public function isFirstnameSurname($firstName, $surname) {
        $result = $this->model
            ->where('first_name', $firstName)
            ->where('surname', $surname)
            ->first()
        ;

        if ($result) {
            return $result->id;
        }

        return false;
    }
public function isFirstnameSurname ( $ firstName , $ surname ) { $ result = $ this -> model -> where ( 'first_name' , $ firstName ) -> where ( 'surname' , $ surname ) -> first ( ) ; if ( $ result ) { return $ result -> id ; } return false ; }
Does a record exist with the given "first_name" and "surname"?

@param   string  $firstName                 The first name.
@param   string  $surname                   The surname.
@return  mixed
Does a record exist with the given first_name and surname ?