mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-12 06:30:07 +01:00
22 lines
415 B
PHP
22 lines
415 B
PHP
<?php
|
|
namespace PonePaste\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Report extends Model {
|
|
protected $table = 'reports';
|
|
protected $fillable = [
|
|
'paste_id',
|
|
'user_id',
|
|
'reason',
|
|
'open'
|
|
];
|
|
|
|
public function user() {
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
|
|
public function paste() {
|
|
return $this->belongsTo(Paste::class);
|
|
}
|
|
}
|