ClearBowl/api/app/Models/UsersRecipes.php

21 lines
355 B
PHP

<?php
namespace App;
use App\Models\Recipe;
use Illuminate\Database\Eloquent\Model;
class UsersRecipes extends Model
{
protected $fillable = ['user_id', 'recipe_id'];
protected $with = ['recipe'];
public function setUpdatedAtAttribute($value) {}
public function recipe()
{
return $this->belongsTo(Recipe::class);
}
}