19 lines
482 B
PHP
19 lines
482 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Models;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||
|
|
||
|
class Feedback extends Model
|
||
|
{
|
||
|
use HasFactory, SoftDeletes;
|
||
|
|
||
|
protected $fillable = ['title', 'body', 'rating', 'user_nickname'];
|
||
|
|
||
|
public function routeFeedback()
|
||
|
{
|
||
|
return $this->belongsToMany(RouteSportDetails::class, 'route_feedbacks', 'feedback_id', 'route_sport_detail_id');
|
||
|
}
|
||
|
}
|