Skip to content

Commit

Permalink
Merge pull request #17 from thedevdojo/updateUerModel
Browse files Browse the repository at this point in the history
Adding updates to the logo to look nice in the emails
  • Loading branch information
tnylea authored May 22, 2024
2 parents ee19d01 + 9bfed50 commit e50eb7d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions resources/views/components/elements/logo.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<x-auth::elements.link href="/" class="block w-auto" style="height:{{ $height ?? '30' }}px">
<x-auth::elements.link href="/" style="height:{{ $height ?? '30' }}px; width:auto; display:block">
@if($isImage)
<img src="{{ url($imageSrc) }}" class="w-auto h-full" />
<img src="{{ url($imageSrc) }}" style="height:100%; width:auto" />
@else
{!! str_replace('<svg', '<svg class="w-auto h-full"', $svgString) !!}
{!! str_replace('<svg', '<svg style="height:100%; width:auto"', $svgString) !!}
@endif
</x-auth::elements.link>
2 changes: 1 addition & 1 deletion resources/views/pages/auth/register.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
use App\Models\User;
use Devdojo\Auth\Models\User;
use Devdojo\Auth\Models\SocialProvider;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
Expand Down
3 changes: 2 additions & 1 deletion src/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Devdojo\Auth\Traits\HasSocialProviders;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use PragmaRX\Google2FA\Google2FA;

/**
Expand All @@ -18,7 +19,7 @@
*/
class User extends Authenticatable implements MustVerifyEmail
{
use HasSocialProviders;
use HasSocialProviders, Notifiable;

protected $fillable = [
'name', 'email', 'password', 'two_factor_secret', 'two_factor_recovery_codes', 'two_factor_confirmed_at',
Expand Down

0 comments on commit e50eb7d

Please sign in to comment.