<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Trainner extends Model 
{

    protected $table = 'trainners';
    public $timestamps = true;
    protected $fillable = ['name', 'description', 'salary','percentage','image','video','specialty_id'];

    use SoftDeletes;

    protected $dates = ['deleted_at'];

    

     public function branches()
    {
        return $this->belongsToMany('App\BranchUser','branch_users','user_id','branch_id','3');
    }

}