You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 Fixed and no bugs anymore 🆙
This commit is contained in:
@@ -134,7 +134,6 @@ class Article extends Model
|
||||
->each(fn (AuthorNotification $follower) => $follower->user->notify($this->user, NotificationType::ArticlePosted, $this->getNotificationUrl()),
|
||||
);
|
||||
}
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
|
||||
@@ -22,7 +22,6 @@ class CommandLog extends Model
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
|
||||
@@ -45,7 +45,6 @@ class WebsiteOpenPosition extends Model
|
||||
{
|
||||
return $query->where('apply_from', '<=', now())->where('apply_to', '>', now());
|
||||
}
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
|
||||
@@ -52,6 +52,6 @@ class WebsiteHelpCenterTicket extends Model
|
||||
|
||||
protected function content(): \Illuminate\Database\Eloquent\Casts\Attribute
|
||||
{
|
||||
return \Illuminate\Database\Eloquent\Casts\Attribute::make(get: fn ($value) => Purify::clean($value));
|
||||
return \Illuminate\Database\Eloquent\Casts\Attribute::make(get: fn($value) => Purify::clean($value));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,6 @@ class WebsiteHelpCenterTicketReply extends Model
|
||||
|
||||
protected function content(): \Illuminate\Database\Eloquent\Casts\Attribute
|
||||
{
|
||||
return \Illuminate\Database\Eloquent\Casts\Attribute::make(get: fn ($value) => Purify::clean($value));
|
||||
return \Illuminate\Database\Eloquent\Casts\Attribute::make(get: fn($value) => Purify::clean($value));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ namespace App\Models\Miscellaneous;
|
||||
|
||||
use App\Models\Room;
|
||||
use App\Models\User;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Casts\Attribute;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
@@ -60,7 +61,6 @@ class CameraWeb extends Model
|
||||
get: fn () => \Illuminate\Support\Facades\Date::parse($this->timestamp)->format('Y-m-d H:i'),
|
||||
);
|
||||
}
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
|
||||
@@ -18,7 +18,6 @@ class PasswordResetToken extends Model
|
||||
{
|
||||
return $this->belongsTo(User::class, 'email', 'mail');
|
||||
}
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
|
||||
@@ -245,7 +245,7 @@ class User extends Authenticatable implements FilamentUser, HasName
|
||||
|
||||
public function confirmTwoFactorAuthentication($code)
|
||||
{
|
||||
$codeIsValid = resolve(TwoFactorAuthenticationProvider::class)
|
||||
$codeIsValid = app(TwoFactorAuthenticationProvider::class)
|
||||
->verify(decrypt($this->two_factor_secret), $code);
|
||||
|
||||
if (! $codeIsValid) {
|
||||
|
||||
@@ -20,12 +20,11 @@ class WebsiteAd extends Model
|
||||
protected function imageUrl(): \Illuminate\Database\Eloquent\Casts\Attribute
|
||||
{
|
||||
return \Illuminate\Database\Eloquent\Casts\Attribute::make(get: function () {
|
||||
$settingsService = resolve(SettingsService::class);
|
||||
$settingsService = app(SettingsService::class);
|
||||
$adsPicturePath = Cache::remember('ads_picture_path', 3600, fn () => $settingsService->getOrDefault('ads_picture_path'));
|
||||
if (! str_starts_with((string) $adsPicturePath, 'http')) {
|
||||
$adsPicturePath = rtrim((string) config('app.url'), '/') . '/' . ltrim((string) $adsPicturePath, '/');
|
||||
}
|
||||
|
||||
return rtrim((string) $adsPicturePath, '/') . '/' . $this->image;
|
||||
});
|
||||
}
|
||||
@@ -56,7 +55,7 @@ class WebsiteAd extends Model
|
||||
|
||||
protected function configureAdsDisk(): void
|
||||
{
|
||||
$settingsService = resolve(SettingsService::class);
|
||||
$settingsService = app(SettingsService::class);
|
||||
|
||||
$adsPath = Cache::remember('ads_path_filesystem', 3600, fn () => $settingsService->getOrDefault('ads_path_filesystem'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user