Skip to content

Commit

Permalink
Merge branch 'main' into fix-symlink-creation
Browse files Browse the repository at this point in the history
  • Loading branch information
flowan committed Feb 8, 2024
2 parents c510bc0 + 0aa088e commit 9c473d4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

namespace App\Models;

// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Filament\Models\Contracts\FilamentUser;
use Filament\Panel;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;

class User extends Authenticatable
class User extends Authenticatable implements FilamentUser
{
use HasApiTokens, HasFactory, Notifiable;

Expand Down Expand Up @@ -42,4 +43,9 @@ class User extends Authenticatable
'email_verified_at' => 'datetime',
'password' => 'hashed',
];

public function canAccessPanel(Panel $panel): bool
{
return true;
}
}
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
extra_hosts:
- 'host.docker.internal:host-gateway'
ports:
- '${APP_PORT:-8080}:80'
- '${APP_PORT:-80}:80'
environment:
WWWUSER: '${WWWUSER:-1000}'
LARAVEL_SAIL: 1
Expand Down

0 comments on commit 9c473d4

Please sign in to comment.