ldc-legaulois/app/Models/Customers.php
2021-02-08 09:47:42 +01:00

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);
}
}