public function getAdvancedSearchFieldsResults(Request $request)
    {
        // check if user has permissions to access this link
        if(!User::hasAccess('User', 'read')) {
            return $this->noPermission();
        }
        // join parameters for the query
        // we are left joining the the media table
        $joins = array(
          [
            'table' => 'media',
            'type' => 'left',
            'whereTable1' => "profileImageID",
            'whereTable2' => "mediaID",
          ]
        );
        return Search::advanced('users', $request, User::$rowsPerPage, $request->page, $joins);
    }
public function getAdvancedSearchFieldsResults(Request $request)
    {
        // check if user has permissions to access this link
        if(!User::hasAccess('User', 'read')) {
            return $this->noPermission();
        }
        // join parameters for the query
        // we are left joining the the media table
        $joins = array(
          [
            'table' => 'media',
            'type' => 'left',
            'whereTable1' => "profileImageID",
            'whereTable2' => "mediaID",
          ]
        );
        return Search::advanced('users', $request, User::$rowsPerPage, $request->page, $joins);
    }
public function getAdvancedSearchFieldsResults ( Request $ request ) { // check if user has permissions to access this link if ( ! User :: hasAccess ( 'User' , 'read' ) ) { return $ this -> noPermission ( ) ; } // join parameters for the query // we are left joining the the media table $ joins = array ( [ 'table' => 'media' , 'type' => 'left' , 'whereTable1' => "profileImageID" , 'whereTable2' => "mediaID" , ] ) ; return Search :: advanced ( 'users' , $ request , User :: $ rowsPerPage , $ request -> page , $ joins ) ; }
Get the result of advanced search.

@param  Request $request
@return array
Get the result of advanced search .