D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
school.dentostock.com
/
app
/
Filename :
SmAdmissionQueryFollowup.php
back
Copy
<?php namespace App; use App\Scopes\AcademicSchoolScope; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class SmAdmissionQueryFollowup extends Model { use HasFactory; protected static function boot() { parent::boot(); static::addGlobalScope(new AcademicSchoolScope); } public function user(){ return $this->belongsTo('App\User', 'created_by', 'id'); } }