File: /var/www/html/punjabcabs/app/UserRequestPayment.php
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class UserRequestPayment extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'request_id',
'payment_mode',
'fixed',
'distance',
'commision',
'discount',
'waiting_fare',
'booking_fare',
'airport_fare',
'transaction_fare',
'extra_fare',
'lifting_fare',
'toll',
'tax',
'total',
'wallet',
'cash',
'sro_fare',
'extra_desc'
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'status', 'password', 'remember_token', 'created_at', 'updated_at'
];
/**
* The services that belong to the user.
*/
public function request()
{
return $this->belongsTo('App\UserRequests');
}
/**
* The services that belong to the user.
*/
public function provider()
{
return $this->belongsTo('App\Provider');
}
}