33 lines
612 B
PHP
33 lines
612 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Notifications\Notifiable;
|
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
|
|
|
class Customers extends Authenticatable
|
|
{
|
|
use Notifiable;
|
|
|
|
protected $guard = 'customer';
|
|
|
|
public function recipes()
|
|
{
|
|
return $this->belongsToMany(Recipes::class);
|
|
}
|
|
|
|
public function products()
|
|
{
|
|
return $this->belongsToMany(Products::class, 'cart');
|
|
}
|
|
|
|
public function forums()
|
|
{
|
|
return $this->hasMany(Forum::class);
|
|
}
|
|
|
|
public function answers()
|
|
{
|
|
return $this->hasMany(ForumAnswers::class);
|
|
}
|
|
}
|