Markdium-Laravel 8 - Integrate Jetstream + Socialite in 30 mins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Illuminate\Database\Eloquent\SoftDeletes; | |
use SoftDeletes; | |
protected $casts = [ | |
'email_verified_at' => 'datetime', | |
'social' => 'array', | |
]; | |
/** | |
* Auto transform email address to lowercase | |
*/ | |
public function setEmailAttribute($value) | |
{ | |
$this->attributes['email'] = strtolower($value); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment