ClearBowl/api/app/Models/UsersRecipes.php

21 lines
355 B
PHP
Raw Normal View History

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