Preview: PresentationReview.php
Size: 1.13 KB
/var/www/multi-event-cfp.bitkit.dk/httpdocs/app/Models/PresentationReview.php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\Pivot;
class PresentationReview extends Pivot
{
use HasFactory;
protected $table = 'presentation_reviews';
/**
* @var bool
*/
public $incrementing = true;
protected $fillable = [
'presentation_id',
'event_id',
'reviewer_id',
'status',
'approved_date',
'comment'
];
protected $casts = [
'approved_date' => 'date:Y-m-d H:i:s',
'created_at' => 'date:Y-m-d H:i:s',
'updated_at' => 'date:Y-m-d H:i:s'
];
//===========================================//
//relations
public function reviewer(): BelongsTo
{
return $this->belongsTo(User::class);
}
public function event(): BelongsTo
{
return $this->belongsTo(Event::class);
}
public function presentation(): BelongsTo
{
return $this->belongsTo(Presentation::class);
}
// End of relations
//===========================================//
}
Directory Contents
Dirs: 0 × Files: 26