1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace App;
- use Illuminate\Foundation\Auth\User as Authenticatable;
- use Illuminate\Database\Eloquent\Model;
- use Zizaco\Entrust\Traits\EntrustUserTrait;
- class User extends Authenticatable
- {
- use EntrustUserTrait;
-
- protected $fillable = [
- 'name', 'email', 'password', 'utype',
- ];
- protected $hidden = [
- 'password', 'remember_token',
- ];
- public function company_data()
- {
- return $this->belongsTo('App\Models\CompanyModel', 'company', 'id');
- }
- /*public function employee()
- {
- return $this->belongsTo('App\Models\Employee');
- }*/
-
- }
|