first commit, after modifying client section

This commit is contained in:
Kwesi Banson
2023-02-22 07:48:50 +00:00
commit ad0dd6a6e1
1880 changed files with 538494 additions and 0 deletions

24
app/Models/MarketReport.php Executable file
View File

@@ -0,0 +1,24 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class MarketReport extends Model
{
protected $guarded = array('id');
public $table = "market_reports";
public function client_info(){
return $this->hasOne('App\Models\Client', 'id', 'client');
}
public function payment_info(){
return $this->hasOne('App\Models\PaymentType', 'id', 'payment_type');
}
public function auth_user_info(){
return $this->hasOne('App\Models\Account', 'id', 'auth_user_id');
}
public function sam_comment_info(){
return $this->hasMany('App\Models\SamComment', 'report_id', 'id');
}
}