added yoga stuff, i18n, workout tracking and a dashboard to track progress
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class WorkoutSessionItem extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'session_id',
|
||||
'workout_exercise_id',
|
||||
'done',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'done' => 'boolean',
|
||||
];
|
||||
|
||||
public function session(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(WorkoutSession::class, 'session_id');
|
||||
}
|
||||
|
||||
public function workoutExercise(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(WorkoutExercise::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user