File: /var/www/wsklad/app/Mobilerequestline.php
<?php
namespace App;
use Illuminate\Foundation\Auth\User as Authenticatable;
class Mobilerequestline extends Authenticatable
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'mobileRequestId',
'code',
'name',
'prodmerka1',
'prodmerka2',
'orderMerka',
'prodcena',
'prodcena1m2',
'fkoef',
'ddsrate',
'discount',
'orderQty',
'orderPrice',
];
protected $table = 'mobile_request_lines';
public function data()
{
return $this->hasMany('App\Ajurendpointproduct', 'CODE', 'code');
}
}