Skip to content

Commit

Permalink
Laravel 11.x Shift (#306)
Browse files Browse the repository at this point in the history
* 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 exception handling

* Re-register routes

* Re-register scheduled commands

* Bump Composer dependencies

* Convert `$casts` property to method

* Mark base controller as `abstract`

* Remove `CreatesApplication` testing trait

* wip

* wip

* fix test

---------

Co-authored-by: Shift <shift@laravelshift.com>
  • Loading branch information
christophrumpel and laravel-shift authored Apr 3, 2024
1 parent e131669 commit 3b86d32
Show file tree
Hide file tree
Showing 61 changed files with 1,478 additions and 4,138 deletions.
18 changes: 16 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,35 @@ 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
LOG_LEVEL=debug

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=larastreamers

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

MEMCACHED_HOST=127.0.0.1

Expand Down
4 changes: 2 additions & 2 deletions .env.sail
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=larastreamers

BROADCAST_DRIVER=log
CACHE_DRIVER=file
BROADCAST_CONNECTION=log
CACHE_STORE=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=database
SESSION_LIFETIME=120
Expand Down
1 change: 1 addition & 0 deletions .phpunit.cache/test-results
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":"pest_2.34.6","defects":[],"times":{"P\\Tests\\Feature\\PageArchiveTest::__pest_evaluable_it_shows_only_finished_streams":0.091,"P\\Tests\\Feature\\PageArchiveTest::__pest_evaluable_it_uses_actual_start_time_first_for_order_if_given":0.012,"P\\Tests\\Feature\\PageArchiveTest::__pest_evaluable_it_orders_streams_from_latest_to_oldest":0.016,"P\\Tests\\Feature\\PageArchiveTest::__pest_evaluable_it_does_not_show_deleted_streams":0.012,"P\\Tests\\Feature\\PageArchiveTest::__pest_evaluable_it_shows_duration_of_stream_if_given":0.011,"P\\Tests\\Feature\\PageArchiveTest::__pest_evaluable_it_searches_for_streams_on_title":0.014,"P\\Tests\\Feature\\PageArchiveTest::__pest_evaluable_it_searches_for_streams_on_channel_title":0.013,"P\\Tests\\Feature\\PageArchiveTest::__pest_evaluable_it_searches__for_streams_by_specific_____this__withTitle_____streamer":0.012,"P\\Tests\\Feature\\PageArchiveTest::__pest_evaluable_it_searches_for_streams_by_specific_streamer_and_search_term":0.011,"P\\Tests\\Feature\\PageArchiveTest::__pest_evaluable_it_orders_streamers_by_name":0.016}}
62 changes: 0 additions & 62 deletions app/Console/Kernel.php

This file was deleted.

29 changes: 0 additions & 29 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;
}
66 changes: 0 additions & 66 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 3b86d32

Please sign in to comment.