Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
72be25f
Remove default `app` files
laravel-shift Mar 6, 2025
2b760ad
Shift core files
laravel-shift Mar 6, 2025
4626517
Streamline config files
laravel-shift Mar 6, 2025
d8b5702
Set new `ENV` variables
laravel-shift Mar 6, 2025
f83b60b
Default new `bootstrap/app.php`
laravel-shift Mar 6, 2025
7768d47
Re-register HTTP middleware
laravel-shift Mar 6, 2025
b1be458
Consolidate service providers
laravel-shift Mar 6, 2025
114a570
Re-register service providers
laravel-shift Mar 6, 2025
11ef2e1
Re-register routes
laravel-shift Mar 6, 2025
229bfd4
Re-register scheduled commands
laravel-shift Mar 6, 2025
57c99ac
Bump Composer dependencies
laravel-shift Mar 6, 2025
1df1b44
Convert `$casts` property to method
laravel-shift Mar 6, 2025
ab29a63
Mark base controller as `abstract`
laravel-shift Mar 6, 2025
8a0f04d
Remove `CreatesApplication` testing trait
laravel-shift Mar 6, 2025
6f69075
Shift cleanup
laravel-shift Mar 6, 2025
256f325
move providers to app service providers
gcavanunez Mar 6, 2025
26afa0a
Remove `arraysubset` asserts
gcavanunez Mar 6, 2025
ae83366
ensure diff in is an int
gcavanunez Mar 6, 2025
2f58dac
publishes and tweaks passport migrations
gcavanunez Mar 7, 2025
1004a19
publishes livewire config
gcavanunez Mar 7, 2025
5f923f0
telescope config
gcavanunez Mar 7, 2025
92c6eb3
removes livewire includes
gcavanunez Mar 7, 2025
ef4f9a9
fixes tests after removing `arraySubset`
gcavanunez Mar 7, 2025
18afec0
move livewire to v3 style
gcavanunez Mar 7, 2025
9ee86f0
remove dbal
gcavanunez Mar 7, 2025
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
15 changes: 13 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ APP_KEY=
APP_DEBUG=true
APP_URL=http://novapackages.test/

APP_LOCALE=en
APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=en_US
APP_MAINTENANCE_DRIVER=file
APP_MAINTENANCE_STORE=database
BCRYPT_ROUNDS=12

LOG_CHANNEL=stack
LOG_STACK=single
LOG_LEVEL=debug

DB_CONNECTION=mysql
Expand All @@ -16,10 +24,13 @@ DB_PASSWORD=

QUEUE_CONNECTION=sync
QUEUE_FAILED_DRIVER=database-uuids
BROADCAST_DRIVER=log
CACHE_DRIVER=file
BROADCAST_CONNECTION=log
CACHE_STORE=file
SESSION_DRIVER=file
SESSION_LIFETIME=120
SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=null
FILESYSTEM_DISK=public

REDIS_HOST=127.0.0.1
Expand Down
9 changes: 7 additions & 2 deletions app/Collaborator.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@ class Collaborator extends Model

protected $guarded = ['id'];

protected $casts = ['user_id' => 'integer'];

protected $appends = ['name_with_username'];

protected function casts(): array
{
return [
'user_id' => 'integer'
];
}

public function allAuthoredPackages(): HasMany
{
return $this->hasMany(Package::class, 'author_id')->withoutGlobalScope('notDisabled');
Expand Down
5 changes: 3 additions & 2 deletions app/Console/Commands/DisableUnavailablePackages.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ public function handle(): void
->get();

$unavailablePackages->each(function ($package) {
$diffInDays = now()->diffInDays($package->marked_as_unavailable_at);
if ($diffInDays < 30) {
$diffInDays = (int) now()->diffInDays($package->marked_as_unavailable_at, true);

if ($diffInDays < 30) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/SendUnavailablePackageFollowUp.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function handle(): void
->get();

$unavailablePackages->each(function ($package) {
$diffInDays = now()->diffInDays($package->marked_as_unavailable_at);
$diffInDays = (int) now()->diffInDays($package->marked_as_unavailable_at, true);
if ($diffInDays != 14) {
return;
}
Expand Down
41 changes: 0 additions & 41 deletions app/Console/Kernel.php

This file was deleted.

2 changes: 1 addition & 1 deletion app/Http/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;

class Controller extends BaseController
abstract class Controller extends BaseController
{
use AuthorizesRequests, ValidatesRequests;
}
70 changes: 0 additions & 70 deletions app/Http/Kernel.php

This file was deleted.

17 changes: 0 additions & 17 deletions app/Http/Middleware/Authenticate.php

This file was deleted.

17 changes: 0 additions & 17 deletions app/Http/Middleware/EncryptCookies.php

This file was deleted.

17 changes: 0 additions & 17 deletions app/Http/Middleware/PreventRequestsDuringMaintenance.php

This file was deleted.

29 changes: 0 additions & 29 deletions app/Http/Middleware/RedirectIfAuthenticated.php

This file was deleted.

19 changes: 0 additions & 19 deletions app/Http/Middleware/TrimStrings.php

This file was deleted.

20 changes: 0 additions & 20 deletions app/Http/Middleware/TrustHosts.php

This file was deleted.

13 changes: 0 additions & 13 deletions app/Http/Middleware/TrustProxies.php

This file was deleted.

22 changes: 0 additions & 22 deletions app/Http/Middleware/ValidateSignature.php

This file was deleted.

17 changes: 0 additions & 17 deletions app/Http/Middleware/VerifyCsrfToken.php

This file was deleted.

2 changes: 1 addition & 1 deletion app/Http/Resources/PackageDetailResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function toArray($package): array
public function isPossiblyAbandoned($package, $composer_latest, $packagistData)
{
return Arr::get($packagistData, 'package.abandoned', false) ||
($package->created_at->diffInDays(now()) > 15 && ! $composer_latest);
($package->created_at->diffInDays(now(), true) > 16 && ! $composer_latest);
}

protected function isFavorite($package)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Livewire;
namespace App\Livewire;

use App\CacheKeys;
use App\Package;
Expand Down
Loading