mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 04:24:01 +00:00
fix seeding for testing
This commit is contained in:
@@ -14,4 +14,10 @@ class Company extends Model
|
||||
{
|
||||
return $this->belongsTo('App\User');
|
||||
}
|
||||
|
||||
public function deliveryinfo() {
|
||||
|
||||
return $this->hasMany('App\Deliveryinfo');
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,12 +17,13 @@ class Deliveryinfo extends Model
|
||||
'country',
|
||||
'contact_person',
|
||||
'contact_person_no',
|
||||
'com_id'
|
||||
];
|
||||
|
||||
public function company() {
|
||||
|
||||
return $this->belongsTo(App\Company);
|
||||
return $this->belongsTo('App\Company');
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Deliveryinfo;
|
||||
|
||||
use Auth;
|
||||
|
||||
class DeliveryinfoController extends Controller
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user