1
0
mirror of https://github.com/robonen/education-project.git synced 2026-03-20 02:44:31 +00:00
Files
education-project/app/Models/Parentt.php
2020-12-17 02:05:02 +07:00

29 lines
452 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 $guarded = [
'updated_at',
];
protected $hidden = [
'user_id',
];
public function user()
{
return $this->belongsTo(User::class);
}
}