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
+18 -1
View File
@@ -7,8 +7,25 @@ use Illuminate\Database\Eloquent\Model;
class Company extends Model
{
protected $fillable = ['user_id', 'company_profile', 'reg_cert', 'company_name', 'registration_no', 'tax_no', 'tel_no', 'fax', 'address', 'city', 'postcode', 'state', 'country', 'contact_person'];
protected $fillable = [
'company_profile',
'reg_cert',
'company_name',
'registration_no',
'tax_no',
'tel_no',
'fax',
'address',
'city',
'postcode',
'state',
'country',
'contact_person',
'user_id',
];
public function user()
{
return $this->belongsTo('App\User');