Skip to content

Commit

Permalink
Merge pull request #32 from tallstackui/upgrading-l11
Browse files Browse the repository at this point in the history
Laravel 11
  • Loading branch information
devajmeireles authored Jun 12, 2024
2 parents 1d4465e + d7a6a11 commit afd81a8
Show file tree
Hide file tree
Showing 45 changed files with 491 additions and 2,570 deletions.
59 changes: 32 additions & 27 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,53 @@ APP_NAME="TallStackUI, TALL Stack Components."
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_TIMEZONE=UTC
APP_URL=http://localhost

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_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=example
DB_USERNAME=root
DB_PASSWORD=
DB_CONNECTION=sqlite
# DB_HOST=127.0.0.1
# DB_PORT=3306
# DB_DATABASE=laravel
# DB_USERNAME=root
# DB_PASSWORD=

BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DISK=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_DRIVER=database
SESSION_LIFETIME=120
SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=null

BROADCAST_CONNECTION=log
FILESYSTEM_DISK=local
QUEUE_CONNECTION=database

CACHE_STORE=database
CACHE_PREFIX=

MEMCACHED_HOST=127.0.0.1

REDIS_CLIENT=phpredis
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER=smtp
MAIL_HOST=mailpit
MAIL_PORT=1025
MAIL_MAILER=log
MAIL_HOST=127.0.0.1
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
Expand All @@ -43,20 +61,7 @@ AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_HOST=
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=mt1

VITE_APP_NAME="${APP_NAME}"
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

# Customs

Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ on:
pull_request:
branches:
- 1.x
schedule:
- cron: '0 0 * * *'

workflow_dispatch:

Expand All @@ -18,8 +16,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.1]
laravel: [10.*]
php: [8.2]
laravel: [11.*]

name: PHP:${{ matrix.php }} / Laravel:${{ matrix.laravel }}

Expand Down
20 changes: 0 additions & 20 deletions app/Console/Kernel.php

This file was deleted.

12 changes: 0 additions & 12 deletions app/Http/Controllers/Controller.php

This file was deleted.

3 changes: 1 addition & 2 deletions app/Http/Controllers/Documentation/Internal.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

namespace App\Http\Controllers\Documentation;

use App\Http\Controllers\Controller;
use Illuminate\Contracts\View\View;

class Internal extends Controller
class Internal
{
// It actually is related with `error` component.
public function index(): View
Expand Down
50 changes: 0 additions & 50 deletions app/Http/Kernel.php

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

4 changes: 1 addition & 3 deletions app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

namespace App\Models;

// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;

class User extends Authenticatable
{
use HasApiTokens, HasFactory, Notifiable;
use HasFactory, Notifiable;

protected $fillable = [
'name',
Expand Down
18 changes: 0 additions & 18 deletions app/Providers/AuthServiceProvider.php

This file was deleted.

Loading

0 comments on commit afd81a8

Please sign in to comment.