Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions app/Console/Commands/CreateAction.php

This file was deleted.

3 changes: 1 addition & 2 deletions app/Http/Controllers/Prezet/ShowController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Http\Controllers\Prezet;

use App\Libraries\Helpers;
use App\Models\DocumentView;
use Illuminate\Http\Request;
use Illuminate\View\View;
Expand All @@ -23,7 +22,7 @@ public function __invoke(Request $request, string $slug): View
'document_id' => $document->getKey(),
'ip_address' => $request->ip(),
], [
'timezone' => Helpers::tz(),
'timezone' => timezone(),
'last_viewed_at' => now(),
]);

Expand Down
17 changes: 0 additions & 17 deletions app/Libraries/Helpers.php

This file was deleted.

2 changes: 1 addition & 1 deletion app/Livewire/Forms/LoginForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function authenticate(): void

RateLimiter::clear($this->throttleKey());

auth()->user()->update(['timezone' => Helpers::tz()]);
auth()->user()->update(['timezone' => timezone()]);

(new SearchSpotify)->refreshToken(auth()->user());
(new SearchCategories)->refreshToken(auth()->user());
Expand Down
4 changes: 0 additions & 4 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ public function boot(): void
$event->extendSocialite('twitch', TwitchProvider::class);
});

Carbon::macro('inUserTimezone', function () {
return $this->tz(auth()->user()?->timezone ?? 'America/New_York');
});

Health::checks([
EnvironmentCheck::new(),
DatabaseCheck::new(),
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"require": {
"php": "^8.2",
"intervention/image": "^3.11",
"kyledoesdev/essentials": "^0.0.1",
"laravel/framework": "^12.16",
"laravel/nightwatch": "^1.8",
"laravel/socialite": "^5.18",
Expand Down
80 changes: 77 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions config/essentials.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

return [
'timezone' => [
'local_envs' => explode(',', (string) env('LOCAL_ENVS', 'local,development,dev')),
],
];