29 lines
536 B
PHP
29 lines
536 B
PHP
<?php
|
|
|
|
namespace App\Models\Member;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
|
|
class MemAuthInfo extends Model
|
|
{
|
|
|
|
|
|
protected $table = 'mem_auth_info';
|
|
protected $primaryKey = 'mem_no';
|
|
public $incrementing = false;
|
|
protected $keyType = 'int';
|
|
|
|
protected $guarded = [];
|
|
|
|
protected $casts = [
|
|
'auth_info' => 'array',
|
|
];
|
|
|
|
public function member(): BelongsTo
|
|
{
|
|
return $this->belongsTo(MemInfo::class, 'mem_no', 'mem_no');
|
|
}
|
|
}
|