mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Add FailedJob model
This commit is contained in:
parent
261e95e772
commit
6bad723b68
1 changed files with 19 additions and 0 deletions
19
app/FailedJob.php
Normal file
19
app/FailedJob.php
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use Carbon\Carbon;
|
||||||
|
|
||||||
|
class FailedJob extends Model
|
||||||
|
{
|
||||||
|
const CREATED_AT = 'failed_at';
|
||||||
|
const UPDATED_AT = 'failed_at';
|
||||||
|
|
||||||
|
public $timestamps = 'failed_at';
|
||||||
|
|
||||||
|
public function getFailedAtAttribute($val)
|
||||||
|
{
|
||||||
|
return Carbon::parse($val);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue