for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
final class Dispense extends Model
{
protected $fillable = [
'key', 'token', 'exipres_at',
];
protected $dates = [
'expires_at',
public function getExpiresAt(): Carbon
return $this->getAttributeValue('expires_at');
}
public function getToken(): string
return $this->getAttributeValue('token');
return $this->getAttributeValue('token')
boolean|null
string