34 lines
778 B
PHP
34 lines
778 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
use App\Models\ActivityMaster;
|
|
|
|
class Tracher extends Model
|
|
{
|
|
use HasFactory;
|
|
use SoftDeletes;
|
|
protected $dates = ['deleted_at'];
|
|
protected $table = 'trachers';
|
|
protected $fillable = [
|
|
'id',
|
|
'teacher_title',
|
|
'teacher_sub_title',
|
|
'description',
|
|
'address',
|
|
'contact_number'
|
|
];
|
|
|
|
|
|
public function subscription(){
|
|
return $this->belongsTo(SubscriptionMaster::class, 'subscription_id', 'id');
|
|
}
|
|
|
|
// public function teacher(){
|
|
// return $this->hasMany(ActivityMaster::class, 'id','teacher_id');
|
|
// }
|
|
}
|