2f3fd laravel 11 upgrade (#436)
* fix password reset bug * upgrade to laravel 11 * composer.lock * fix migration issues * use ValidationRule Contract * rename password_resets table * implemented casts as protected function * update env variables * fix optional property * fix validation issues * use <env> on php unit xml * fix pint * cmposer.lock * composer json fixes * fix composer dependencies, remove faker * remove unused class * remove test class * fix default value for mysql migration * linting * expression syntax fix --------- Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
@@ -89,14 +89,17 @@ class Form extends Model implements CachableAttributes
|
||||
'seo_meta',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'properties' => 'array',
|
||||
'database_fields_update' => 'array',
|
||||
'closes_at' => 'datetime',
|
||||
'tags' => 'array',
|
||||
'removed_properties' => 'array',
|
||||
'seo_meta' => 'object'
|
||||
];
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'properties' => 'array',
|
||||
'database_fields_update' => 'array',
|
||||
'closes_at' => 'datetime',
|
||||
'tags' => 'array',
|
||||
'removed_properties' => 'array',
|
||||
'seo_meta' => 'object'
|
||||
];
|
||||
}
|
||||
|
||||
protected $appends = [
|
||||
'share_url',
|
||||
@@ -129,7 +132,7 @@ class Form extends Model implements CachableAttributes
|
||||
public function getIsProAttribute()
|
||||
{
|
||||
return $this->remember('is_pro', 15 * 60, function (): ?bool {
|
||||
return optional($this->workspace)->is_pro === true;
|
||||
return $this->workspace?->is_pro === true;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user