mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 04:24:01 +00:00
3c1f2c522d
# Conflicts: # Dockerfile # app/Company.php # app/Http/Controllers/CompanyController.php # app/Http/Kernel.php # app/User.php # composer.json # composer.lock # config/app.php # package-lock.json # routes/api.php # tests/TestCase.php
24 lines
510 B
PHP
24 lines
510 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
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 $guarded = [];
|
|
|
|
|
|
public function Contact()
|
|
|
|
{
|
|
return $this->hasMany(Contact::class);
|
|
}
|
|
public function user()
|
|
{
|
|
return $this->belongsTo('App\User');
|
|
}
|
|
}
|