style updates
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Enterprise\Models;
|
||||
|
||||
use App\Models\User;
|
||||
@@ -8,7 +9,16 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
final class HealthRun extends Model
|
||||
{
|
||||
protected $table = 'enterprise_health_runs';
|
||||
|
||||
protected $fillable = ['user_id', 'status', 'results', 'ran_at'];
|
||||
protected function casts(): array { return ['results' => 'array', 'ran_at' => 'datetime']; }
|
||||
public function user(): BelongsTo { return $this->belongsTo(User::class); }
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return ['results' => 'array', 'ran_at' => 'datetime'];
|
||||
}
|
||||
|
||||
public function user(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user