Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\Models;
- use Illuminate\Notifications\Notifiable;
- use Illuminate\Foundation\Auth\User as Authenticatable;
- class User extends Authenticatable
- {
- use Notifiable;
- protected $guarded = ['user'];
- protected $fillable = [
- 'name', 'email', 'password',
- ];
- protected $hidden = [
- 'password', 'remember_token',
- ];
- public function companies()
- {
- return $this->belongsToMany(Company::class);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement