38 lines
674 B
PHP
38 lines
674 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class StudentPortalLog extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'student_portal_logs';
|
|
|
|
protected $fillable = [
|
|
'user_id',
|
|
'first_name',
|
|
'last_name',
|
|
'email',
|
|
'phone',
|
|
'studentid',
|
|
'password',
|
|
'pin',
|
|
'status',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'password',
|
|
'pin',
|
|
];
|
|
|
|
/**
|
|
* Get the user associated with this portal log.
|
|
*/
|
|
public function user()
|
|
{
|
|
return $this->belongsTo(User::class, 'user_id');
|
|
}
|
|
} |