10000 feat: upgrade to Laravel 11 and use Herd instead of Sail · laravel-json-api/tutorial-app@fe7dd9a · GitHub
[go: up one dir, main page]

Skip to content

Commit fe7dd9a

Browse files
committed
feat: upgrade to Laravel 11 and use Herd instead of Sail
1 parent abbbabd commit fe7dd9a

File tree

93 files changed

+3170
-4458
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+3170
-4458
lines changed

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ root = true
33
[*]
44
charset = utf-8
55
end_of_line = lf
6-
insert_final_newline = true
7-
indent_style = space
86
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

1111
[*.md]

.env.example

Lines changed: 36 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,57 @@ APP_NAME=Laravel
22
APP_ENV=local
33
APP_KEY=
44
APP_DEBUG=true
5+
APP_TIMEZONE=UTC
56
APP_URL=http://localhost
67

8+
APP_LOCALE=en
9+
APP_FALLBACK_LOCALE=en
10+
APP_FAKER_LOCALE=en_US
11+
12+
APP_MAINTENANCE_DRIVER=file
13+
# APP_MAINTENANCE_STORE=database
14+
15+
BCRYPT_ROUNDS=12
16+
717
LOG_CHANNEL=stack
18+
LOG_STACK=single
19+
LOG_DEPRECATIONS_CHANNEL=null
820
LOG_LEVEL=debug
921

10-
DB_CONNECTION=mysql
11-
DB_HOST=mysql
12-
DB_PORT=3306
13-
DB_DATABASE=jsonapi_tutorial
14-
DB_USERNAME=jsonapi
15-
DB_PASSWORD=
16-
17-
BROADCAST_DRIVER=log
18-
CACHE_DRIVER=file
19-
FILESYSTEM_DRIVER=local
20-
QUEUE_CONNECTION=sync
21-
SESSION_DRIVER=file
22+
DB_CONNECTION=sqlite
23+
# DB_HOST=127.0.0.1
24+
# DB_PORT=3306
25+
# DB_DATABASE=laravel
26+
# DB_USERNAME=root
27+
# DB_PASSWORD=
28+
29+
SESSION_DRIVER=database
2230
SESSION_LIFETIME=120
31+
SESSION_ENCRYPT=false
32+
SESSION_PATH=/
33+
SESSION_DOMAIN=null
34+
35+
BROADCAST_CONNECTION=log
36+
FILESYSTEM_DISK=local
37+
QUEUE_CONNECTION=database
38+
39+
CACHE_STORE=database
40+
CACHE_PREFIX=
2341

2442
MEMCACHED_HOST=127.0.0.1
2543

44+
REDIS_CLIENT=phpredis
2645
REDIS_HOST=127.0.0.1
2746
REDIS_PASSWORD=null
2847
REDIS_PORT=6379
2948

30-
MAIL_MAILER=smtp
31-
MAIL_HOST=mailhog
32-
MAIL_PORT=1025
49+
MAIL_MAILER=log
50+
MAIL_HOST=127.0.0.1
51+
MAIL_PORT=2525
3352
MAIL_USERNAME=null
3453
MAIL_PASSWORD=null
3554
MAIL_ENCRYPTION=null
36-
MAIL_FROM_ADDRESS=null
55+
MAIL_FROM_ADDRESS="hello@example.com"
3756
MAIL_FROM_NAME="${APP_NAME}"
3857

3958
AWS_ACCESS_KEY_ID=
@@ -42,10 +61,4 @@ AWS_DEFAULT_REGION=us-east-1
4261
AWS_BUCKET=
4362
AWS_USE_PATH_STYLE_ENDPOINT=false
4463

45-
PUSHER_APP_ID=
46-
PUSHER_APP_KEY=
47-
PUSHER_APP_SECRET=
48-
PUSHER_APP_CLUSTER=mt1
49-
50-
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
51-
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
64+
VITE_APP_NAME="${APP_NAME}"

.gitattributes

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
* text=auto
2-
*.css linguist-vendored
3-
*.scss linguist-vendored
4-
*.js linguist-vendored
1+
* text=auto eol=lf
2+
3+
*.blade.php diff=html
4+
*.css diff=css
5+
*.html diff=html
6+
*.md diff=markdown
7+
*.php diff=php
8+
9+
/.github export-ignore
510
CHANGELOG.md export-ignore
11+
.styleci.yml export-ignore

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
1+
/.phpunit.cache
12
/node_modules
3+
/public/build
24
/public/hot
35
/public/storage
46
/storage/*.key
57
/vendor
68
.env
79
.env.backup
10+
.env.production
11+
.phpactor.json
812
.phpunit.result.cache
9-
docker-compose.override.yml
1013
Homestead.json
1114
Homestead.yaml
15+
auth.json
1216
npm-debug.log
1317
yarn-error.log
18+
/.fleet
1419
/.idea
1520
/.vscode
21+
/.zed

.styleci.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Laravel JSON:API Tutorial
22

3-
Learning JSON:API and/or Laravel JSON:API? Then following the [Laravel JSON:API tutorial](https://laraveljsonapi.io/docs/1.0/tutorial/)
4-
is a great way to learn!
3+
Learning JSON:API and/or Laravel JSON:API? Then following
4+
the [Laravel JSON:API tutorial](https://laraveljsonapi.io/docs/4.0/tutorial/) is a great way to learn!
55

66
In the tutorial you will build a blog application with an API that follows the JSON:API specification. You can build
77
that application as you follow the tutorial. But if you get stuck, or just want to see the end result, then this

app/Console/Kernel.php

Lines changed: 0 additions & 41 deletions
This file was deleted.

app/Exceptions/Handler.php

Lines changed: 0 additions & 45 deletions
This file was deleted.

app/Http/Controllers/Controller.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22

33
namespace App\Http\Controllers;
44

5-
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
6-
use Illuminate\Foundation\Bus\DispatchesJobs;
7-
use Illuminate\Foundation\Validation\ValidatesRequests;
8-
use Illuminate\Routing\Controller as BaseController;
9-
10-
class Controller extends BaseController
5+
abstract class Controller
116
{
12-
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
7+
//
138
}

app/Http/Kernel.php

Lines changed: 0 additions & 67 deletions
This file was deleted.

app/Http/Middleware/Authenticate.php

Lines changed: 0 additions & 21 deletions
This file was deleted.

app/Http/Middleware/EncryptCookies.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

app/Http/Middleware/PreventRequestsDuringMaintenance.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0