ldc-legaulois/app/Models/Customers.php

34 lines
612 B
PHP
Raw Normal View History

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