Skip to content

Commit

Permalink
Laravel 11.x Shift (#149)
Browse files Browse the repository at this point in the history
* Apply Laravel coding style

Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions.

You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) for your project root.

For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style).

* Remove default `app` files

* Shift core files

* Streamline config files

* Set new `ENV` variables

* Default new `bootstrap/app.php`

* Re-register HTTP middleware

* Consolidate service providers

* Re-register service providers

* Re-register routes

* Bump Composer dependencies

* Convert `$casts` property to method

* Mark base controller as `abstract`

* Remove `createApplication` method

* Shift cleanup

* wip

* wip

---------

Co-authored-by: Shift <[email protected]>
  • Loading branch information
driesvints and laravel-shift authored Jan 10, 2025
1 parent 7ba4292 commit a662675
Show file tree
Hide file tree
Showing 51 changed files with 1,003 additions and 2,787 deletions.
18 changes: 16 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,20 @@ APP_NAME=Laravel
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

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
Expand All @@ -13,11 +24,14 @@ DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=

BROADCAST_DRIVER=log
CACHE_DRIVER=file
BROADCAST_CONNECTION=log
CACHE_STORE=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=null

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Tests

on:
push:
branches:
- main
pull_request:

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

This file was deleted.

48 changes: 0 additions & 48 deletions app/Exceptions/Handler.php

This file was deleted.

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

This file was deleted.

2 changes: 1 addition & 1 deletion app/Http/Controllers/DocsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class DocsController

private const EXCLUDED = ['readme', 'license'];

public function __invoke(Documentation $docs, string $version = null, string $page = null)
public function __invoke(Documentation $docs, ?string $version = null, ?string $page = null)
{
if ($page === null) {
if ($version !== null) {
Expand Down
65 changes: 0 additions & 65 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.

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.

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

This file was deleted.

Loading

0 comments on commit a662675

Please sign in to comment.