Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusjunges committed Aug 9, 2024
1 parent f884a12 commit 6e7bfae
Show file tree
Hide file tree
Showing 46 changed files with 1,131 additions and 2,068 deletions.
17 changes: 16 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,21 @@ APP_KEY=
APP_DEBUG=true
APP_URL=http://laravelversions.test

LOG_CHANNEL=stack
APP_TIMEZONE=UTC
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,flare
LOG_STACK=single
LOG_LEVEL=debug

BROADCAST_CONNECTION=log
CACHE_STORE=redis

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
Expand Down Expand Up @@ -54,4 +66,7 @@ ZAPIER_WEBHOOK_URL=

FLARE_KEY=

SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=null

28 changes: 0 additions & 28 deletions app/Console/Kernel.php

This file was deleted.

30 changes: 0 additions & 30 deletions app/Exceptions/Handler.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;
}
2 changes: 1 addition & 1 deletion app/Http/Controllers/LaravelVersionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function index(): View
$versions = Cache::remember('laravel-versions', 3600, function () {
return LaravelVersion::orderBy('major', 'desc')->orderBy('minor', 'desc')->get();
});

dd('ok');
$activeVersions = $versions->filter(function ($version) {
return $version->released_at->endOfDay()->gt(now())
|| ($version->ends_securityfixes_at && $version->ends_securityfixes_at->endOfDay()->gt(now()));
Expand Down
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.

27 changes: 0 additions & 27 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.

28 changes: 0 additions & 28 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.

15 changes: 9 additions & 6 deletions app/Models/LaravelVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,16 @@ class LaravelVersion extends Model

protected $guarded = [];

protected $casts = [
'released_at' => 'date',
'ends_bugfixes_at' => 'date',
'ends_securityfixes_at' => 'date',
];
protected function casts(): array
{
return [
'released_at' => 'date',
'ends_bugfixes_at' => 'date',
'ends_securityfixes_at' => 'date',
];
}

public static function notificationDays()
public static function notificationDays(): array
{
return [
'today' => now()->startOfDay(),
Expand Down
Loading

0 comments on commit 6e7bfae

Please sign in to comment.