Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Markdium-Laravel 8 - Integrate Jetstream + Socialite in 30 mins
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