public function hasDataInDefaultApps()
    {
        $tables = ["post_type", "categories", "tags", "languages", "media"];

        foreach($tables as $table){
            $hasData = DB::table($table)->where("createdByUserID", $this->userID)->count();
            if($hasData) {
                return true;
            }
        }

        return false;
    }
public function hasDataInDefaultApps()
    {
        $tables = ["post_type", "categories", "tags", "languages", "media"];

        foreach($tables as $table){
            $hasData = DB::table($table)->where("createdByUserID", $this->userID)->count();
            if($hasData) {
                return true;
            }
        }

        return false;
    }
public function hasDataInDefaultApps ( ) { $ tables = [ "post_type" , "categories" , "tags" , "languages" , "media" ] ; foreach ( $ tables as $ table ) { $ hasData = DB :: table ( $ table ) -> where ( "createdByUserID" , $ this -> userID ) -> count ( ) ; if ( $ hasData ) { return true ; } } return false ; }
Check if user has a data created by him in default apps.
If of the default apps "post_type", "categories", "tags", "languages", "media" has the createdByUsID associated with this user.

@return bool
Check if user has a data created by him in default apps . If of the default apps post_type categories tags languages media has the createdByUsID associated with this user .