mirror of
https://github.com/dyzulk/santulitam.git
synced 2026-01-26 21:41:52 +07:00
First Commit
This commit is contained in:
22
app/Models/Major.php
Normal file
22
app/Models/Major.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\Faculty;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
|
||||
class Major extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'faculty_id',
|
||||
'name',
|
||||
];
|
||||
|
||||
public function faculty()
|
||||
{
|
||||
return $this->belongsTo(Faculty::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user