<reponame>ndkhanh99/laravel_vuejs_app<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User;

class students extends Model
{
    use HasFactory;

    protected $fillable = [
        'last_name','first_name', 'student_code', 'department', 'faculty', 'address', 'phone', 'note'
    ];

    public function user()
    {   
        
        return $this->hasOne('App\Models\User', 'student_id');
    }
}
