for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Auth\Authenticatable as AuthenticableTrait;
class Employee extends Model implements Authenticatable
{
use Notifiable;
Illuminate\Notifications\Notifiable
App\Models\Employee
$email
$phone_number
use AuthenticableTrait;
Illuminate\Auth\Authenticatable
$password
protected $table = 'employees';
public $timestamps = true;
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
protected $dateFormat = 'Y-m-d H:i:s';
public function getActiveAttribute($active)
return (bool) $active;
}