First Commit

This commit is contained in:
Muhammad Herdy Iskandar
2024-07-27 00:18:34 +07:00
commit a099b28858
168 changed files with 17696 additions and 0 deletions

31
app/Models/Student.php Normal file
View File

@@ -0,0 +1,31 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Student extends Model
{
use HasFactory;
protected $fillable = [
'name',
'nim',
'image',
'major_id',
'email',
'phone',
'peleton_id'
];
public function major()
{
return $this->belongsTo(Major::class);
}
public function peleton()
{
return $this->belongsTo(Peleton::class);
}
}