first commit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class RecipeStep extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'recipe_id',
|
||||
'step_number',
|
||||
'title',
|
||||
'instruction',
|
||||
'image',
|
||||
'time_estimate',
|
||||
'sort_order',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'recipe_id' => 'integer',
|
||||
'step_number' => 'integer',
|
||||
'time_estimate' => 'integer',
|
||||
'sort_order' => 'integer',
|
||||
];
|
||||
|
||||
public function recipe(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Recipe::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user