public function sites()
    {
        if (!class_exists(\Modules\Site\Entities\Page::class, false)) {
            throw new \Exception('in order to use User::sites() you have to install the \'vain-sites\' module');
        }

        return $this->hasMany(\Modules\Site\Entities\Page::class);
    }
public function sites()
    {
        if (!class_exists(\Modules\Site\Entities\Page::class, false)) {
            throw new \Exception('in order to use User::sites() you have to install the \'vain-sites\' module');
        }

        return $this->hasMany(\Modules\Site\Entities\Page::class);
    }
public function sites ( ) { if ( ! class_exists ( \ Modules \ Site \ Entities \ Page :: class , false ) ) { throw new \ Exception ( 'in order to use User::sites() you have to install the \'vain-sites\' module' ) ; } return $ this -> hasMany ( \ Modules \ Site \ Entities \ Page :: class ) ; }
created static pages.

todo make site module trait to include in user entity

@throws \Exception

@return mixed
created static pages .