Skip to content

Commit

Permalink
Merge pull request #38 from enflow/shift-112762
Browse files Browse the repository at this point in the history
Laravel 11.x Shift
  • Loading branch information
mbardelmeijer authored Mar 18, 2024
2 parents 5ecc8be + d7f6f89 commit bdf6d10
Show file tree
Hide file tree
Showing 47 changed files with 1,020 additions and 2,511 deletions.
33 changes: 32 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,43 @@ APP_NAME="Laravel Blueprint"
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_TIMEZONE=UTC
APP_URL=http://laravel-blueprint.enflow.test
VITE_HOST=laravel-blueprint.enflow.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_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

DB_CONNECTION=mysql
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=

MAIL_MAILER=log
MAIL_HOST=127.0.0.1
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="[email protected]"
MAIL_FROM_NAME="${APP_NAME}"

SESSION_DRIVER=file
SESSION_LIFETIME=120
SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=null

NOVA_LICENSE_KEY=

VITE_HOST=laravel-blueprint.enflow.test
14 changes: 7 additions & 7 deletions .github/workflows/larastan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 8.3
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo, mysql
coverage: none

Expand All @@ -27,20 +27,20 @@ jobs:
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Restore Composer cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.cache-composer.outputs.dir }}
key: ${{ runner.os }}-${{ github.ref_name }}-composer-${{ hashFiles('**/composer.lock') }}

- name: Copy .env to .env.example
run: cp .env.example .env

- name: Install Composer dependencies
run: composer install --no-interaction --prefer-dist
env:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}

- name: Copy .env
run: cp .env.example .env

- name: Generate key
- name: Generate application key
run: php artisan key:generate

- name: Setup problem matchers
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Fix PHP code style issues
uses: aglipanci/[email protected]

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Fix styling
17 changes: 9 additions & 8 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: 8.3
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none

Expand All @@ -22,18 +22,21 @@ jobs:
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Restore Composer cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.cache-composer.outputs.dir }}
key: ${{ runner.os }}-${{ github.ref_name }}-composer-${{ hashFiles('**/composer.lock') }}

- name: Copy .env.example to .env
run: cp .env.example .env

- name: Install Composer dependencies
run: composer install --no-interaction --prefer-dist
env:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}

- name: Cache yarn dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: node_modules
key: yarn-${{ hashFiles('yarn.lock') }}
Expand All @@ -43,10 +46,8 @@ jobs:
env:
FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}

- name: Prepare Laravel Application
run: |
cp .env.example .env
php artisan key:generate
- name: Generate application key
run: php artisan key:generate

- name: Run tests
run: vendor/bin/phpunit
Expand Down
18 changes: 0 additions & 18 deletions app/Console/Kernel.php

This file was deleted.

26 changes: 0 additions & 26 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;
}
61 changes: 0 additions & 61 deletions app/Http/Kernel.php

This file was deleted.

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

This file was deleted.

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

Loading

0 comments on commit bdf6d10

Please sign in to comment.