KUJUNTI.ID MINISH3LL
Path : /var/www/clients/client0/web25/web/app/Models/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/clients/client0/web25/web/app/Models/Staff.php


<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
use Spatie\Translatable\HasTranslations;

class Staff extends Model
{
    use HasFactory, HasTranslations, Notifiable;

    public $translatable = ['position','description'];
    
    protected $fillable = [
        'lastName',
        'firstName',
        'gender',
        'phone',
        'email',
        'position',
        'description',
        'feature_id',
        'grade_id',
    ];

    public function feature()
    {
        return $this->belongsTo('App\Models\Feature');
    }

    public function image()
    {
        return $this->hasOne(Image::class);
    }
    
    public function grade(){
        return $this->belongsTo(Grade::class);
    }
    
    public function follows(){
        return $this->belongsToMany(Follow::class);
    }
}

© KUJUNTI.ID

Website Feedback Form

Please fill out the form below to send us your feedback.




Contact Support