src/Helpers/Helpers.php
public function getPeopleIdFromFullName($fullName) {
        $result = DB::table('peoples')
            ->where('first_name',  $this->getFirstName($fullName))
            ->where('middle_name', $this->getMiddleName($fullName))
            ->where('surname',     $this->getLastName($fullName))
            ->first()
        ;

        if (count($result) > 0) {
            return $result->id;
        }
        return 0;
    }
public function getPeopleIdFromFullName($fullName) {
        $result = DB::table('peoples')
            ->where('first_name',  $this->getFirstName($fullName))
            ->where('middle_name', $this->getMiddleName($fullName))
            ->where('surname',     $this->getLastName($fullName))
            ->first()
        ;

        if (count($result) > 0) {
            return $result->id;
        }
        return 0;
    }
public function getPeopleIdFromFullName ( $ fullName ) { $ result = DB :: table ( 'peoples' ) -> where ( 'first_name' , $ this -> getFirstName ( $ fullName ) ) -> where ( 'middle_name' , $ this -> getMiddleName ( $ fullName ) ) -> where ( 'surname' , $ this -> getLastName ( $ fullName ) ) -> first ( ) ; if ( count ( $ result ) > 0 ) { return $ result -> id ; } return 0 ; }
get the peoples' ID from the full name

@param   string    $fullName    The full name in the URL in the form "Firstname@Middlename@Lastname"
@return int
get the peoples ID from the full name