<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Foundation\Auth\User as Authenticatable; class Admin extends Authenticatable { protected $guard_name = 'admin'; protected $table = 'admins'; protected $fillable = [ 'name', 'email', 'password','attachment_id','status' ]; /** * The attributes that should be hidden for arrays. * * @var array */ protected $hidden = [ 'password', 'remember_token', ]; }