Initialer Laravel Commit für BetiX
This commit is contained in:
27
app/Models/ProfileReport.php
Normal file
27
app/Models/ProfileReport.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ProfileReport extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = ['reporter_id', 'profile_id', 'reason', 'details', 'snapshot', 'screenshot_path', 'status', 'admin_note'];
|
||||
|
||||
protected $casts = [
|
||||
'snapshot' => 'array',
|
||||
];
|
||||
|
||||
public function reporter()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'reporter_id');
|
||||
}
|
||||
|
||||
public function profile()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'profile_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user