IMMREX7
<?php
namespace App;
use Laravel\Passport\HasApiTokens;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Database\Eloquent\Model;
use App\Traits;
class Teacher extends Authenticatable {
use Traits\AutoUpdateUserColumns;
use Notifiable;
use HasApiTokens;
protected $guard = 'teacher';
protected $primaryKey = 'idEmployee';
protected $table = 'employees';
protected $fillable = ['idSchool','type' ,'firstName', 'lastName', 'guardianName', 'photo','mobile' ,'address', 'email', 'dob', 'doj', 'password','pwd'];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
}
Copyright © 2021 -