1
0
mirror of https://github.com/robonen/education-project.git synced 2026-03-20 19:04:31 +00:00
Files
education-project/app/Models/Parentt.php
nikden13 de0f849ff9 123
2020-12-17 01:09:22 +07:00

30 lines
472 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Validator;
class Parentt extends Model
{
use HasFactory;
protected $table = 'parents';
protected $fillable = [
'user_id',
'updated_at',
];
protected $hidden = [
'user_id',
];
public function user()
{
return $this->belongsTo(User::class);
}
}