Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current none :
/
proc
/
self
/
root
/
var
/
www
/
html
/
tpid-aden
/
api
/
app
/
Models
/
Or
Select Your none :
Upload File :
New :
File
Dir
//proc/self/root/var/www/html/tpid-aden/api/app/Models/MitraStore.php
<?php namespace App\Models; use App\Helpers\AdvanceSearch; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class MitraStore extends Model { use HasFactory, AdvanceSearch, SoftDeletes; protected $fillable = [ 'mitra_id', 'location_code_id', 'store_name', 'store_address', 'store_city', 'total_mitra', 'instagram', 'pic_name', 'pic_phone', 'pic_id', 'pic_id_image', 'pic_address', 'pic_city', 'business_age', 'brand_market', 'ever_sell', 'job_role', 'discount', 'service_fee', 'discount_fauz', 'service_fee_fauz', 'id_accounting', // 'accounting_credit_memo_no', // 'accounting_cash_flow_no', 'mitra_code', 'note', 'is_deposit', 'is_rejected', 'reject_reason', 'balance', 'point', 'approved_by', 'date_limit', ]; // Add this field for use Advance search protected $columns = [ 'location_code_id' => 'like', 'store_name' => 'like', 'pic_name' => 'like', 'store_city' => 'like', ]; function mitra(){ return $this->belongsTo(Mitra::class); } function location_code(){ return $this->belongsTo(LocationCode::class); } function mitra_store_deposit(){ return $this->hasMany(MitraStoreDeposit::class); } function order(){ return $this->hasMany(Order::class); } function ongkos_kirims(){ return $this->hasMany(OngkosKirim::class); } function mitra_store_ship_address(){ return $this->hasMany(MitraStoreShipAddress::class); } }