This commit is contained in:
2022-11-01 11:07:41 +08:00
commit c23de98690
131 changed files with 14088 additions and 0 deletions

24
app/Models/UserInfo.php Normal file
View File

@@ -0,0 +1,24 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class UserInfo extends Model
{
protected $primaryKey = 'user_id';
protected static function boot()
{
parent::boot();
self::created(function ($model) {
});
}
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
}