added company, warehouse, contact seeder

This commit is contained in:
Zain Fauzan Rofie Azizi
2018-07-02 15:24:32 +08:00
parent e866d7eb0d
commit 8eebdcd093
8 changed files with 85 additions and 20 deletions
+6 -6
View File
@@ -6,8 +6,8 @@ use Illuminate\Database\Eloquent\Model;
class Deliveryinfo extends Model
{
protected $fillable = [
'id',
protected $fillable = [
'branch',
'deli_info',
'address',
@@ -20,10 +20,10 @@ class Deliveryinfo extends Model
'com_id'
];
public function company() {
public function company(){
return $this->belongsTo('App\Company');
}
return $this->belongsTo(App/Company);
}
}