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:
Favour Olayinka
2024-06-10 15:10:14 +01:00
committed by GitHub
parent 1875faa123
commit bec8e86b59
37 changed files with 2078 additions and 3158 deletions

View File

@@ -45,9 +45,12 @@ class User extends Authenticatable implements JWTSubject
*
* @var array
*/
protected $casts = [
'email_verified_at' => 'datetime',
];
protected function casts()
{
return [
'email_verified_at' => 'datetime',
];
}
/**
* The accessors to append to the model's array form.
@@ -90,12 +93,12 @@ class User extends Authenticatable implements JWTSubject
{
return $this->subscribed()
|| in_array($this->email, config('opnform.extra_pro_users_emails'))
|| ! is_null($this->activeLicense());
|| !is_null($this->activeLicense());
}
public function getHasCustomerIdAttribute()
{
return ! is_null($this->stripe_id);
return !is_null($this->stripe_id);
}
public function getAdminAttribute()