Root Zanli
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
o5t6x7pgljbm
/
public_html
/
app
/
Models
/
Filename :
CollegeGoalWeightage.php
back
Copy
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasOne; class CollegeGoalWeightage extends Model { protected $table = 'college_goal_weightage'; protected $primaryKey = 'college_goal_weightage_id'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'college_id','goal_id','weightage', 'created_at','updated_at' ]; public function goal(): HasOne { return $this->hasOne('App\Models\Goal', 'goal_id', 'goal_id'); } }