Server IP : 66.29.132.124 / Your IP : 18.116.37.200 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/book24.ng/modules/Vendor/Models/ |
Upload File : |
<?php namespace Modules\Vendor\Models; use App\BaseModel; use App\User; use Illuminate\Support\Facades\DB; use Illuminate\Database\Eloquent\SoftDeletes; use Modules\Core\Models\SEO; use Spatie\Permission\Models\Role; class VendorRequest extends BaseModel { use SoftDeletes; protected $table = 'user_upgrade_request'; protected $fillable = [ 'user_id', 'approved_time', 'role_request', 'status', 'approved_time', 'approved_by' ]; public static function getModelName() { return __("User upgrade request"); } public function user(){ return $this->belongsTo(User::class)->withDefault(); } public function approvedBy(){ return $this->belongsTo(User::class,'approved_by')->withDefault(); } public function role(){ return $this->belongsTo(Role::class,'role_request')->withDefault();; } }