This commit is contained in:
parent
a0e4d91068
commit
3ab6acb1cd
@ -40,10 +40,6 @@ USER root
|
|||||||
RUN chown -R www-data:www-data /var/www/storage /var/www/bootstrap/cache \
|
RUN chown -R www-data:www-data /var/www/storage /var/www/bootstrap/cache \
|
||||||
&& chmod -R 775 /var/www/storage /var/www/bootstrap/cache
|
&& chmod -R 775 /var/www/storage /var/www/bootstrap/cache
|
||||||
|
|
||||||
RUN chmod -R 777 /var/www
|
|
||||||
RUN sed -i 's/display_errors = Off/display_errors = On/g' /etc/php/8.3/fpm/php.ini
|
|
||||||
RUN sed -i 's/display_errors = Off/display_errors = On/g' /etc/php/8.3/cli/php.ini
|
|
||||||
RUN sed -i 's/error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT/error_reporting = E_ALL/g' /etc/php/8.3/fpm/php.ini
|
|
||||||
|
|
||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
CMD ["php-fpm"]
|
CMD ["php-fpm"]
|
||||||
|
|||||||
@ -8,8 +8,9 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
|||||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||||
use Illuminate\Notifications\Notifiable;
|
use Illuminate\Notifications\Notifiable;
|
||||||
use Spatie\Permission\Traits\HasRoles;
|
use Spatie\Permission\Traits\HasRoles;
|
||||||
|
use Filament\Models\Contracts\FilamentUser;
|
||||||
|
|
||||||
class User extends Authenticatable
|
class User extends Authenticatable implements FilamentUser
|
||||||
{
|
{
|
||||||
/** @use HasFactory<\Database\Factories\UserFactory> */
|
/** @use HasFactory<\Database\Factories\UserFactory> */
|
||||||
use HasFactory, Notifiable, HasRoles;
|
use HasFactory, Notifiable, HasRoles;
|
||||||
@ -62,4 +63,7 @@ class User extends Authenticatable
|
|||||||
{
|
{
|
||||||
return $this->hasMany(HomeRoomTeacher::class, 'teacher_id');
|
return $this->hasMany(HomeRoomTeacher::class, 'teacher_id');
|
||||||
}
|
}
|
||||||
|
public function canAccessFilament(): bool {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user