Skip to content
Open
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
51 changes: 36 additions & 15 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ APP_NAME=UNIT3D
APP_ENV=prod
APP_KEY=
APP_DEBUG=false
APP_LOG_LEVEL=debug
APP_URL=http://localhost

VITE_ECHO_ADDRESS=http://localhost:8443

LOG_CHANNEL=daily
LOG_LEVEL=info

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
Expand All @@ -16,34 +14,57 @@ DB_DATABASE=unit3d
DB_USERNAME=root
DB_PASSWORD=

BROADCAST_CONNECTION=redis
BROADCAST_CONNECTION=reverb
CACHE_STORE=redis
QUEUE_CONNECTION=redis

SESSION_DRIVER=redis
SESSION_CONNECTION=session
SESSION_LIFETIME=120
SESSION_SECURE_COOKIE=true
QUEUE_CONNECTION=redis

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER=log
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS='support@unit3d.site'
MAIL_FROM_NAME='UNIT3D Support'
REVERB_APP_ID=100001
REVERB_APP_KEY=example_reverb_key
REVERB_APP_SECRET=example_reverb_secret

REVERB_HOST=127.0.0.1
REVERB_PORT=1967
REVERB_SCHEME=http
REVERB_SERVER_HOST=127.0.0.1
REVERB_SERVER_PORT=1967
REVERB_APP_MAX_MESSAGE_SIZE=1000000
REVERB_MAX_REQUEST_SIZE=1000000

VITE_REVERB_APP_KEY="${REVERB_APP_KEY}"
VITE_REVERB_HOST=chat.localhost
VITE_REVERB_PORT=443
VITE_REVERB_SCHEME=https

MAIL_DRIVER=smtp
MAIL_HOST=
MAIL_PORT=587
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=TLS
MAIL_FROM_NAME=UNIT3D
MAIL_FROM_ADDRESS=support@unit3d.dev

DEFAULT_OWNER_NAME=UNIT3D
DEFAULT_OWNER_EMAIL=unit3d@example.com
DEFAULT_OWNER_PASSWORD=UNIT3D
DEFAULT_OWNER_EMAIL=support@unit3d.dev
DEFAULT_OWNER_PASSWORD=

TMDB_API_KEY=
TWITCH_CLIENT_ID=
TWITCH_CLIENT_SECRET=

SCOUT_DRIVER=meilisearch
MEILISEARCH_HOST=http://127.0.0.1:7700
MEILISEARCH_KEY=

TRACKER_KEY=
TRACKER_HOST=127.0.0.1
TRACKER_PORT=6969
1 change: 1 addition & 0 deletions .github/workflows/phpunit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ jobs:
DB_DATABASE: unit3d
DB_PASSWORD: null
CACHE_STORE: array
BROADCAST_CONNECTION: 'null'

- name: Save PHPUnit cache
uses: actions/cache/save@v4
Expand Down
7 changes: 4 additions & 3 deletions app/Services/Tmdb/Client/Movie.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Str;
use DateTime;
use Exception;
use Illuminate\Http\Client\PendingRequest;
use Illuminate\Http\Client\RequestException;
use Illuminate\Http\Client\Response;
use Throwable;

class Movie
{
Expand Down Expand Up @@ -251,7 +252,7 @@ public function __construct(int $id)
$response = Http::acceptJson()
->retry(
[1000, 5000, 15000],
when: fn (Exception $exception) => !($exception instanceof RequestException && $exception->response->notFound()),
when: fn (Throwable $exception, PendingRequest $request) => !($exception instanceof RequestException && $exception->response->notFound()),
throw: false
)
->withUrlParameters(['id' => $id])
Expand All @@ -275,7 +276,7 @@ public function __construct(int $id)
}

/**
* @throws Exception
* @throws Throwable
* @return ?array{
* adult: bool,
* backdrop: ?string,
Expand Down
5 changes: 3 additions & 2 deletions app/Services/Tmdb/Client/TV.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
use App\Enums\Occupation;
use App\Exceptions\MetaFetchNotFoundException;
use App\Services\Tmdb\TMDB;
use Exception;
use Illuminate\Http\Client\PendingRequest;
use Illuminate\Http\Client\RequestException;
use Illuminate\Http\Client\Response;
use Throwable;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Str;

Expand Down Expand Up @@ -312,7 +313,7 @@ public function __construct(int $id)
$response = Http::acceptJson()
->retry(
[1000, 5000, 15000],
when: fn (Exception $exception) => !($exception instanceof RequestException && $exception->response->notFound()),
when: fn (Throwable $exception, PendingRequest $request) => !($exception instanceof RequestException && $exception->response->notFound()),
throw: false
)
->withUrlParameters(['id' => $id])
Expand Down
514 changes: 514 additions & 0 deletions bun.lock

Large diffs are not rendered by default.

Binary file removed bun.lockb
Binary file not shown.
39 changes: 20 additions & 19 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,44 +24,45 @@
"hdvinnie/laravel-security-headers": "^3.0.3",
"intervention/image": "^2.7.2",
"joypixels/assets": "^v7.0.1",
"laravel/fortify": "^1.33.0",
"laravel/framework": "^12.44.0",
"laravel/octane": "^2.13.3",
"laravel/scout": "^10.23.0",
"laravel/tinker": "^2.10.2",
"livewire/livewire": "^3.7.3",
"laravel/fortify": "^1.34.1",
"laravel/framework": "^12.50.0",
"laravel/octane": "^2.13.5",
"laravel/reverb": "^1.7.1",
"laravel/scout": "^10.23.1",
"laravel/tinker": "^2.11.0",
"livewire/livewire": "^3.7.8",
"maennchen/zipstream-php": "^3.2.1",
"marcreichel/igdb-laravel": "^5.3.1",
"meilisearch/meilisearch-php": "^1.16.1",
"paragonie/constant_time_encoding": "^2.8.2",
"spatie/laravel-backup": "^9.3.7",
"spatie/laravel-backup": "^9.4.0",
"spatie/laravel-cookie-consent": "^3.3.3",
"spatie/laravel-image-optimizer": "^1.8.2",
"spatie/ssl-certificate": "^2.6.10",
"symfony/dom-crawler": "^6.4.25",
"symfony/dom-crawler": "^6.4.32",
"theodorejb/polycast": "dev-master",
"vstelmakh/url-highlight": "^3.1.3"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.16.3",
"brianium/paratest": "^7.16.0",
"barryvdh/laravel-debugbar": "^3.16.5",
"brianium/paratest": "^7.16.1",
"calebdw/larastan": "^3.8.7",
"calebdw/larastan-livewire": "^2.3.0",
"calebdw/larastan-livewire": "^2.4.0",
"fakerphp/faker": "^1.24.1",
"jasonmccreary/laravel-test-assertions": "^2.8.0",
"laravel/pint": "^1.26.0",
"laravel/sail": "^1.51.0",
"laravel/pint": "^1.27.0",
"laravel/sail": "^1.52.0",
"mockery/mockery": "^1.6.12",
"nunomaduro/collision": "^8.8.3",
"pestphp/pest": "^4.3.0",
"pestphp/pest": "^4.3.2",
"pestphp/pest-plugin-laravel": "^4.0.0",
"pestphp/pest-plugin-livewire": "^4.0.1",
"pestphp/pest-plugin-livewire": "^4.1.0",
"pestphp/pest-plugin-type-coverage": "^4.0.3",
"phpstan/phpstan": "^2.1.36",
"phpunit/phpunit": "^12.5.4",
"phpstan/phpstan": "^2.1.38",
"phpunit/phpunit": "^12.5.8",
"ryoluo/sail-ssl": "^1.4.0",
"spatie/laravel-ignition": "^2.9.1",
"tomasvotruba/bladestan": "^0.11.3"
"spatie/laravel-ignition": "^2.10.0",
"tomasvotruba/bladestan": "^0.11.4"
},
"config": {
"preferred-install": "dist",
Expand Down
Loading
Loading