'int', 'user_id' => 'int', 'company_id' => 'int', 'user_payment_id' => 'int', 'payment' => 'int', 'hits' => 'int', 'teaser_begin' => 'int', 'teaser_end' => 'int', 'no_export' => 'int', ]; protected $fillable = [ 'title', 'language', 'text', 'backlink_url', 'category_id', 'user_id', 'company_id', 'user_payment_id', 'payment', 'status', 'hits', 'slug', 'teaser_begin', 'teaser_end', 'no_export', 'keywords', ]; public function category() { return $this->belongsTo(Category::class); } public function company() { return $this->belongsTo(Company::class); } public function sf_guard_user() { return $this->belongsTo(SfGuardUser::class, 'user_id'); } public function contacts() { return $this->belongsToMany(Contact::class, 'press_release_contact'); } public function press_release_image_olds() { return $this->hasMany(PressReleaseImageOld::class); } }