Skip to content

Commit 28ec9d7

Browse files
author
DKravtsov
committed
updated packages and readme.md
1 parent 6905a29 commit 28ec9d7

40 files changed

+2141
-1698
lines changed

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) Dmitriy Kravtsov
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

app/Console/Kernel.php

-7
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@
99

1010
class Kernel extends ConsoleKernel
1111
{
12-
/**
13-
* The Artisan commands provided by your application.
14-
*
15-
* @var array
16-
*/
17-
protected $commands = [];
18-
1912
/**
2013
* Define the application's command schedule.
2114
* @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter

app/Exceptions/Handler.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ class Handler extends ExceptionHandler
1212
/**
1313
* A list of the exception types that are not reported.
1414
*
15-
* @var string[]
15+
* @var array<int, class-string<Throwable>>
1616
*/
1717
protected $dontReport = [];
1818

1919
/**
2020
* A list of the inputs that are never flashed for validation exceptions.
2121
*
22-
* @var string[]
22+
* @var array<int, string>
2323
*/
2424
protected $dontFlash = [
2525
'current_password',

app/Http/Kernel.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Kernel extends HttpKernel
1313
*
1414
* These middleware are run during every request to your application.
1515
*
16-
* @var array
16+
* @var array<int, class-string|string>
1717
*/
1818
protected $middleware = [
1919
// \App\Http\Middleware\TrustHosts::class,
@@ -28,7 +28,7 @@ class Kernel extends HttpKernel
2828
/**
2929
* The application's route middleware groups.
3030
*
31-
* @var array
31+
* @var array<string, array<int, class-string|string>>
3232
*/
3333
protected $middlewareGroups = [
3434
'web' => [
@@ -53,7 +53,7 @@ class Kernel extends HttpKernel
5353
*
5454
* These middleware may be assigned to groups or used individually.
5555
*
56-
* @var array
56+
* @var array<string, class-string|string>
5757
*/
5858
protected $routeMiddleware = [
5959
'auth' => \App\Http\Middleware\Authenticate::class,

app/Http/Middleware/EncryptCookies.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class EncryptCookies extends Middleware
1111
/**
1212
* The names of the cookies that should not be encrypted.
1313
*
14-
* @var array
14+
* @var array<int, string>
1515
*/
1616
protected $except = [];
1717
}

app/Http/Middleware/PreventRequestsDuringMaintenance.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class PreventRequestsDuringMaintenance extends Middleware
1111
/**
1212
* The URIs that should be reachable while maintenance mode is enabled.
1313
*
14-
* @var array
14+
* @var array<int, string>
1515
*/
1616
protected $except = [];
1717
}

app/Http/Middleware/TrimStrings.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class TrimStrings extends Middleware
1111
/**
1212
* The names of the attributes that should not be trimmed.
1313
*
14-
* @var array
14+
* @var array<int, string>
1515
*/
1616
protected $except = [
1717
'current_password',

app/Http/Middleware/TrustProxies.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class TrustProxies extends Middleware
1212
/**
1313
* The trusted proxies for this application.
1414
*
15-
* @var array|string|null
15+
* @var array<int, string>|string|null
1616
*/
1717
protected $proxies;
1818

app/Http/Middleware/VerifyCsrfToken.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class VerifyCsrfToken extends Middleware
1111
/**
1212
* The URIs that should be excluded from CSRF verification.
1313
*
14-
* @var array
14+
* @var array<int, string>
1515
*/
1616
protected $except = [];
1717
}

app/Models/User.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class User extends Authenticatable
1818
/**
1919
* The attributes that are mass assignable.
2020
*
21-
* @var string[]
21+
* @var array<int, string>
2222
*/
2323
protected $fillable = [
2424
'name',
@@ -27,19 +27,19 @@ class User extends Authenticatable
2727
];
2828

2929
/**
30-
* The attributes that should be hidden for arrays.
30+
* The attributes that should be hidden for serialization.
3131
*
32-
* @var array
32+
* @var array<int, string>
3333
*/
3434
protected $hidden = [
3535
'password',
3636
'remember_token',
3737
];
3838

3939
/**
40-
* The attributes that should be cast to native types.
40+
* The attributes that should be cast.
4141
*
42-
* @var array
42+
* @var array<string, string>
4343
*/
4444
protected $casts = [
4545
'email_verified_at' => 'datetime',

app/Providers/AuthServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class AuthServiceProvider extends ServiceProvider
1313
/**
1414
* The policy mappings for the application.
1515
*
16-
* @var array
16+
* @var array<class-string, class-string>
1717
*/
1818
protected $policies = [
1919
// 'App\Models\Model' => 'App\Policies\ModelPolicy',

app/Providers/EventServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class EventServiceProvider extends ServiceProvider
1515
/**
1616
* The event listener mappings for the application.
1717
*
18-
* @var array
18+
* @var array<class-string, array<int, class-string>>
1919
*/
2020
protected $listen = [
2121
Registered::class => [

composer.json

+17-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "dimadeush/docker-nginx-php-laravel",
2+
"name": "systemsdk/docker-nginx-php-laravel",
33
"type": "project",
44
"description": "Docker laravel environment",
55
"keywords": [
@@ -10,8 +10,7 @@
1010
"Supervisord",
1111
"MySQL"
1212
],
13-
"homepage": "https://github.com/dimadeush/docker-nginx-php-laravel",
14-
"version": "1.0.0",
13+
"homepage": "https://github.com/systemsdk/docker-nginx-php-laravel",
1514
"license": "MIT",
1615
"authors": [
1716
{
@@ -30,16 +29,16 @@
3029
"ext-pdo": "*",
3130
"ext-pdo_mysql": "*",
3231
"fruitcake/laravel-cors": "^2.0",
33-
"guzzlehttp/guzzle": "^7.3",
32+
"guzzlehttp/guzzle": "^7.4",
3433
"jaybizzle/laravel-migrations-organiser": "^6.1",
35-
"laravel/framework": "^8.55",
36-
"laravel/sanctum": "^2.11",
34+
"laravel/framework": "^8.76",
35+
"laravel/sanctum": "^2.13",
3736
"laravel/tinker": "^2.6"
3837
},
3938
"require-dev": {
4039
"bamarni/composer-bin-plugin": "^1.4",
4140
"barryvdh/laravel-ide-helper": "^2.10",
42-
"ergebnis/composer-normalize": "^2.15",
41+
"ergebnis/composer-normalize": "^2.18",
4342
"facade/ignition": "^2.5",
4443
"fakerphp/faker": "^1.9",
4544
"laravel/sail": "^1.0",
@@ -54,7 +53,13 @@
5453
"php": "8.0.0"
5554
},
5655
"preferred-install": "dist",
57-
"sort-packages": true
56+
"sort-packages": true,
57+
"allow-plugins": {
58+
"bamarni/composer-bin-plugin": true,
59+
"composer/package-versions-deprecated": true,
60+
"ergebnis/composer-normalize": true,
61+
"neronmoon/scriptsdev": true
62+
}
5863
},
5964
"extra": {
6065
"bamarni-bin": {
@@ -84,7 +89,8 @@
8489
"PHPMD\\": "tools/06_phpmd/vendor/phpmd/phpmd/src/bin",
8590
"PhpCsFixer\\": "tools/03_ecs/vendor/symplify/easy-coding-standard/vendor/friendsofphp/php-cs-fixer/src",
8691
"Symplify\\CodingStandard\\": "tools/03_ecs/vendor/symplify/easy-coding-standard/vendor/symplify/coding-standard/src",
87-
"Symplify\\RuleDocGenerator\\": "tools/03_ecs/vendor/symplify/easy-coding-standard/vendor/symplify/rule-doc-generator-contracts/src"
92+
"Symplify\\EasyCodingStandard\\": "tools/03_ecs/vendor/symplify/easy-coding-standard/src",
93+
"ECSPrefix20210928\\Symplify\\RuleDocGenerator\\": "tools/03_ecs/vendor/symplify/easy-coding-standard/vendor/symplify/rule-doc-generator-contracts/src"
8894
}
8995
},
9096
"minimum-stability": "dev",
@@ -102,13 +108,13 @@
102108
"@php artisan package:discover --ansi"
103109
],
104110
"post-root-package-install": [
105-
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
111+
"@php -r \"file_exists('.env') || copy('.env.dev', '.env');\""
106112
],
107113
"post-create-project-cmd": [
108114
"@php artisan key:generate --ansi"
109115
]
110116
},
111117
"support": {
112-
"issues": "https://github.com/dimadeush/docker-nginx-php-laravel/issues"
118+
"issues": "https://github.com/systemsdk/docker-nginx-php-laravel/issues"
113119
}
114120
}

0 commit comments

Comments
 (0)