Edit File: Admin.php
<?php namespace App\Models; class Admin extends AuthBaseModel { const IMAGEPATH = 'admins'; protected $fillable = [ 'name', 'phone', 'email', 'password', 'image', 'role_id', 'is_notify', 'is_blocked', 'type', ]; protected $casts = [ 'is_notify' => 'boolean', 'is_blocked' => 'boolean', ]; public function role() { return $this->belongsTo(Role::class)->withTrashed(); } }
Back to File Manager