%PDF- %PDF-
Direktori : /home/silvzytp/crm-ind-code/app/Models/ |
Current File : /home/silvzytp/crm-ind-code/app/Models/Location.php |
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Location extends Model { use HasFactory; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = ['name','status']; public function subLocations() { return $this->hasMany(SubLocation::class, 'location_id','id'); } }