Cleaning #1
| @@ -1,8 +1,6 @@ | |||||||
| # DOCKER |  | ||||||
| USER_UID=1000 | USER_UID=1000 | ||||||
| USER_NAME=laravel | USER_NAME=laravel | ||||||
|  |  | ||||||
| # LARAVEL |  | ||||||
| APP_NAME=KamilCraftAPI | APP_NAME=KamilCraftAPI | ||||||
| APP_ENV=local | APP_ENV=local | ||||||
| APP_KEY= | APP_KEY= | ||||||
| @@ -10,8 +8,3 @@ APP_DEBUG=true | |||||||
| APP_URL=http://localhost | APP_URL=http://localhost | ||||||
|  |  | ||||||
| DB_CONNECTION=sqlite | DB_CONNECTION=sqlite | ||||||
| #DB_HOST=127.0.0.1 |  | ||||||
| #DB_PORT=3306 |  | ||||||
| #DB_DATABASE=kamilcraft_api |  | ||||||
| #DB_USERNAME=root |  | ||||||
| #DB_PASSWORD= |  | ||||||
|   | |||||||
| @@ -1,5 +1,7 @@ | |||||||
| <?php | <?php | ||||||
|  |  | ||||||
|  | declare(strict_types=1); | ||||||
|  |  | ||||||
| namespace App\Http; | namespace App\Http; | ||||||
|  |  | ||||||
| use App\Http\Middleware\Core; | use App\Http\Middleware\Core; | ||||||
| @@ -7,54 +9,33 @@ use Illuminate\Foundation\Http\Kernel as HttpKernel; | |||||||
|  |  | ||||||
| class Kernel extends HttpKernel | class Kernel extends HttpKernel | ||||||
| { | { | ||||||
|     /** |  | ||||||
|      * The application's global HTTP middleware stack. |  | ||||||
|      * |  | ||||||
|      * These middleware are run during every request to your application. |  | ||||||
|      * |  | ||||||
|      * @var array<int, class-string|string> |  | ||||||
|      */ |  | ||||||
|     protected $middleware = [ |     protected $middleware = [ | ||||||
|         // \App\Http\Middleware\TrustHosts::class, |  | ||||||
|         \App\Http\Middleware\TrustProxies::class, |         \App\Http\Middleware\TrustProxies::class, | ||||||
|         \Fruitcake\Cors\HandleCors::class, |         \Fruitcake\Cors\HandleCors::class, | ||||||
|         \App\Http\Middleware\PreventRequestsDuringMaintenance::class, |         \Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance::class, | ||||||
|         \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, |         \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, | ||||||
|         \App\Http\Middleware\TrimStrings::class, |         \App\Http\Middleware\TrimStrings::class, | ||||||
|         \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, |         \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, | ||||||
|         Core::class |         Core::class | ||||||
|     ]; |     ]; | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * The application's route middleware groups. |  | ||||||
|      * |  | ||||||
|      * @var array<string, array<int, class-string|string>> |  | ||||||
|      */ |  | ||||||
|     protected $middlewareGroups = [ |     protected $middlewareGroups = [ | ||||||
|         'web' => [ |         'web' => [ | ||||||
|             \App\Http\Middleware\EncryptCookies::class, |             \Illuminate\Cookie\Middleware\EncryptCookies::class, | ||||||
|             \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, |             \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, | ||||||
|             \Illuminate\Session\Middleware\StartSession::class, |             \Illuminate\Session\Middleware\StartSession::class, | ||||||
|             // \Illuminate\Session\Middleware\AuthenticateSession::class, |  | ||||||
|             \Illuminate\View\Middleware\ShareErrorsFromSession::class, |             \Illuminate\View\Middleware\ShareErrorsFromSession::class, | ||||||
|             \App\Http\Middleware\VerifyCsrfToken::class, |             \Illuminate\Foundation\Http\Middleware\VerifyCsrfToken::class, | ||||||
|             \Illuminate\Routing\Middleware\SubstituteBindings::class, |             \Illuminate\Routing\Middleware\SubstituteBindings::class, | ||||||
|         ], |         ], | ||||||
|  |  | ||||||
|         'api' => [ |         'api' => [ | ||||||
|             // \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class, |  | ||||||
|             'throttle:api', |             'throttle:api', | ||||||
|             \Illuminate\Routing\Middleware\SubstituteBindings::class, |             \Illuminate\Routing\Middleware\SubstituteBindings::class, | ||||||
|         ], |         ], | ||||||
|     ]; |     ]; | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * The application's route middleware. |  | ||||||
|      * |  | ||||||
|      * These middleware may be assigned to groups or used individually. |  | ||||||
|      * |  | ||||||
|      * @var array<string, class-string|string> |  | ||||||
|      */ |  | ||||||
|     protected $routeMiddleware = [ |     protected $routeMiddleware = [ | ||||||
|         'auth' => \App\Http\Middleware\Authenticate::class, |         'auth' => \App\Http\Middleware\Authenticate::class, | ||||||
|         'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, |         'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, | ||||||
| @@ -66,4 +47,5 @@ class Kernel extends HttpKernel | |||||||
|         'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, |         'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, | ||||||
|         'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, |         'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, | ||||||
|     ]; |     ]; | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
| @@ -6,16 +6,14 @@ use Illuminate\Auth\Middleware\Authenticate as Middleware; | |||||||
|  |  | ||||||
| class Authenticate extends Middleware | class Authenticate extends Middleware | ||||||
| { | { | ||||||
|     /** |  | ||||||
|      * Get the path the user should be redirected to when they are not authenticated. |     protected function redirectTo($request): ?string | ||||||
|      * |  | ||||||
|      * @param  \Illuminate\Http\Request  $request |  | ||||||
|      * @return string|null |  | ||||||
|      */ |  | ||||||
|     protected function redirectTo($request) |  | ||||||
|     { |     { | ||||||
|         if (! $request->expectsJson()) { |         if (! $request->expectsJson()) { | ||||||
|             return route('admin.auth.login'); |             return route('admin.auth.login'); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  |         return null; | ||||||
|     } |     } | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,24 +1,23 @@ | |||||||
| <?php | <?php | ||||||
|  |  | ||||||
|  | declare(strict_types=1); | ||||||
|  |  | ||||||
| namespace App\Http\Middleware; | namespace App\Http\Middleware; | ||||||
|  |  | ||||||
| use Closure; | use Closure; | ||||||
|  | use Illuminate\Http\RedirectResponse; | ||||||
| use Illuminate\Http\Request; | use Illuminate\Http\Request; | ||||||
|  | use Illuminate\Http\Response; | ||||||
|  |  | ||||||
| class Core | class Core | ||||||
| { | { | ||||||
|     /** |  | ||||||
|      * Handle an incoming request. |     public function handle(Request $request, Closure $next): Response|RedirectResponse | ||||||
|      * |  | ||||||
|      * @param  \Illuminate\Http\Request  $request |  | ||||||
|      * @param  \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse)  $next |  | ||||||
|      * @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse |  | ||||||
|      */ |  | ||||||
|     public function handle(Request $request, Closure $next) |  | ||||||
|     { |     { | ||||||
|         return $next($request) |         return $next($request) | ||||||
|             ->header('Access-Control-Allow-Origin', '*') |             ->header('Access-Control-Allow-Origin', '*') | ||||||
|             ->header('Access-Control-Allow-Methods', 'GET, POST, PUT, PATCH, DELETE, OPTIONS') |             ->header('Access-Control-Allow-Methods', 'GET, POST, PUT, PATCH, DELETE, OPTIONS') | ||||||
|             ->header('Access-Control-Allow-Headers', 'Content-Type, Authorizations'); |             ->header('Access-Control-Allow-Headers', 'Content-Type, Authorizations'); | ||||||
|     } |     } | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,17 +0,0 @@ | |||||||
| <?php |  | ||||||
|  |  | ||||||
| namespace App\Http\Middleware; |  | ||||||
|  |  | ||||||
| use Illuminate\Cookie\Middleware\EncryptCookies as Middleware; |  | ||||||
|  |  | ||||||
| class EncryptCookies extends Middleware |  | ||||||
| { |  | ||||||
|     /** |  | ||||||
|      * The names of the cookies that should not be encrypted. |  | ||||||
|      * |  | ||||||
|      * @var array<int, string> |  | ||||||
|      */ |  | ||||||
|     protected $except = [ |  | ||||||
|         // |  | ||||||
|     ]; |  | ||||||
| } |  | ||||||
| @@ -1,17 +0,0 @@ | |||||||
| <?php |  | ||||||
|  |  | ||||||
| namespace App\Http\Middleware; |  | ||||||
|  |  | ||||||
| use Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance as Middleware; |  | ||||||
|  |  | ||||||
| class PreventRequestsDuringMaintenance extends Middleware |  | ||||||
| { |  | ||||||
|     /** |  | ||||||
|      * The URIs that should be reachable while maintenance mode is enabled. |  | ||||||
|      * |  | ||||||
|      * @var array<int, string> |  | ||||||
|      */ |  | ||||||
|     protected $except = [ |  | ||||||
|         // |  | ||||||
|     ]; |  | ||||||
| } |  | ||||||
| @@ -1,23 +1,20 @@ | |||||||
| <?php | <?php | ||||||
|  |  | ||||||
|  | declare(strict_types=1); | ||||||
|  |  | ||||||
| namespace App\Http\Middleware; | namespace App\Http\Middleware; | ||||||
|  |  | ||||||
| use App\Providers\RouteServiceProvider; | use App\Providers\RouteServiceProvider; | ||||||
| use Closure; | use Closure; | ||||||
|  | use Illuminate\Http\RedirectResponse; | ||||||
| use Illuminate\Http\Request; | use Illuminate\Http\Request; | ||||||
|  | use Illuminate\Http\Response; | ||||||
| use Illuminate\Support\Facades\Auth; | use Illuminate\Support\Facades\Auth; | ||||||
|  |  | ||||||
| class RedirectIfAuthenticated | class RedirectIfAuthenticated | ||||||
| { | { | ||||||
|     /** |  | ||||||
|      * Handle an incoming request. |     public function handle(Request $request, Closure $next, ...$guards): Response|RedirectResponse | ||||||
|      * |  | ||||||
|      * @param  \Illuminate\Http\Request  $request |  | ||||||
|      * @param  \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse)  $next |  | ||||||
|      * @param  string|null  ...$guards |  | ||||||
|      * @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse |  | ||||||
|      */ |  | ||||||
|     public function handle(Request $request, Closure $next, ...$guards) |  | ||||||
|     { |     { | ||||||
|         $guards = empty($guards) ? [null] : $guards; |         $guards = empty($guards) ? [null] : $guards; | ||||||
|  |  | ||||||
| @@ -29,4 +26,5 @@ class RedirectIfAuthenticated | |||||||
|  |  | ||||||
|         return $next($request); |         return $next($request); | ||||||
|     } |     } | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,19 +1,18 @@ | |||||||
| <?php | <?php | ||||||
|  |  | ||||||
|  | declare(strict_types=1); | ||||||
|  |  | ||||||
| namespace App\Http\Middleware; | namespace App\Http\Middleware; | ||||||
|  |  | ||||||
| use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware; | use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware; | ||||||
|  |  | ||||||
| class TrimStrings extends Middleware | class TrimStrings extends Middleware | ||||||
| { | { | ||||||
|     /** |  | ||||||
|      * The names of the attributes that should not be trimmed. |  | ||||||
|      * |  | ||||||
|      * @var array<int, string> |  | ||||||
|      */ |  | ||||||
|     protected $except = [ |     protected $except = [ | ||||||
|         'current_password', |         'current_password', | ||||||
|         'password', |         'password', | ||||||
|         'password_confirmation', |         'password_confirmation', | ||||||
|     ]; |     ]; | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,20 +1,19 @@ | |||||||
| <?php | <?php | ||||||
|  |  | ||||||
|  | declare(strict_types=1); | ||||||
|  |  | ||||||
| namespace App\Http\Middleware; | namespace App\Http\Middleware; | ||||||
|  |  | ||||||
| use Illuminate\Http\Middleware\TrustHosts as Middleware; | use Illuminate\Http\Middleware\TrustHosts as Middleware; | ||||||
|  |  | ||||||
| class TrustHosts extends Middleware | class TrustHosts extends Middleware | ||||||
| { | { | ||||||
|     /** |  | ||||||
|      * Get the host patterns that should be trusted. |     public function hosts(): array | ||||||
|      * |  | ||||||
|      * @return array<int, string|null> |  | ||||||
|      */ |  | ||||||
|     public function hosts() |  | ||||||
|     { |     { | ||||||
|         return [ |         return [ | ||||||
|             $this->allSubdomainsOfApplicationUrl(), |             $this->allSubdomainsOfApplicationUrl(), | ||||||
|         ]; |         ]; | ||||||
|     } |     } | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
| @@ -7,22 +7,13 @@ use Illuminate\Http\Request; | |||||||
|  |  | ||||||
| class TrustProxies extends Middleware | class TrustProxies extends Middleware | ||||||
| { | { | ||||||
|     /** |  | ||||||
|      * The trusted proxies for this application. |  | ||||||
|      * |  | ||||||
|      * @var array<int, string>|string|null |  | ||||||
|      */ |  | ||||||
|     protected $proxies; |  | ||||||
|  |  | ||||||
|     /** |     protected $proxies; | ||||||
|      * The headers that should be used to detect proxies. |  | ||||||
|      * |  | ||||||
|      * @var int |  | ||||||
|      */ |  | ||||||
|     protected $headers = |     protected $headers = | ||||||
|         Request::HEADER_X_FORWARDED_FOR | |         Request::HEADER_X_FORWARDED_FOR | | ||||||
|         Request::HEADER_X_FORWARDED_HOST | |         Request::HEADER_X_FORWARDED_HOST | | ||||||
|         Request::HEADER_X_FORWARDED_PORT | |         Request::HEADER_X_FORWARDED_PORT | | ||||||
|         Request::HEADER_X_FORWARDED_PROTO | |         Request::HEADER_X_FORWARDED_PROTO | | ||||||
|         Request::HEADER_X_FORWARDED_AWS_ELB; |         Request::HEADER_X_FORWARDED_AWS_ELB; | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,17 +0,0 @@ | |||||||
| <?php |  | ||||||
|  |  | ||||||
| namespace App\Http\Middleware; |  | ||||||
|  |  | ||||||
| use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware; |  | ||||||
|  |  | ||||||
| class VerifyCsrfToken extends Middleware |  | ||||||
| { |  | ||||||
|     /** |  | ||||||
|      * The URIs that should be excluded from CSRF verification. |  | ||||||
|      * |  | ||||||
|      * @var array<int, string> |  | ||||||
|      */ |  | ||||||
|     protected $except = [ |  | ||||||
|         // |  | ||||||
|     ]; |  | ||||||
| } |  | ||||||
| @@ -1,5 +1,7 @@ | |||||||
| <?php | <?php | ||||||
|  |  | ||||||
|  | declare(strict_types=1); | ||||||
|  |  | ||||||
| namespace App\Models; | namespace App\Models; | ||||||
|  |  | ||||||
| use Illuminate\Database\Eloquent\Builder; | use Illuminate\Database\Eloquent\Builder; | ||||||
| @@ -14,7 +16,6 @@ use Illuminate\Database\Eloquent\Model; | |||||||
|  */ |  */ | ||||||
| class Category extends Model | class Category extends Model | ||||||
| { | { | ||||||
|     // use HasFactory; |  | ||||||
|  |  | ||||||
|     protected $guarded = []; |     protected $guarded = []; | ||||||
|     protected $casts = [ |     protected $casts = [ | ||||||
| @@ -26,7 +27,7 @@ class Category extends Model | |||||||
|         'visible' => 'boolean' |         'visible' => 'boolean' | ||||||
|     ]; |     ]; | ||||||
|  |  | ||||||
|     public function scopeVisibled(Builder $builder) |     public function scopeVisibled(Builder $builder): Builder | ||||||
|     { |     { | ||||||
|         return $builder->where(function (Builder $query) { |         return $builder->where(function (Builder $query) { | ||||||
|             $query->where('visible', true) |             $query->where('visible', true) | ||||||
|   | |||||||
| @@ -23,10 +23,7 @@ use Illuminate\Database\Eloquent\Builder; | |||||||
| class Project extends Model | class Project extends Model | ||||||
| { | { | ||||||
|  |  | ||||||
|     // use HasFactory; |  | ||||||
|  |  | ||||||
|     protected $dateFormat = 'Y-m-d'; |     protected $dateFormat = 'Y-m-d'; | ||||||
|  |  | ||||||
|     protected $guarded = []; |     protected $guarded = []; | ||||||
|     protected $casts = [ |     protected $casts = [ | ||||||
|         'id' => 'integer', |         'id' => 'integer', | ||||||
| @@ -65,7 +62,7 @@ class Project extends Model | |||||||
|             $this->attributes['update_date'] = null; |             $this->attributes['update_date'] = null; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     public function scopeVisibled(Builder $builder) |     public function scopeVisibled(Builder $builder): Builder | ||||||
|     { |     { | ||||||
|         return $builder->where('visible', true); |         return $builder->where('visible', true); | ||||||
|     } |     } | ||||||
|   | |||||||
| @@ -1,44 +1,31 @@ | |||||||
| <?php | <?php | ||||||
|  |  | ||||||
|  | declare(strict_types=1); | ||||||
|  |  | ||||||
| namespace App\Models; | namespace App\Models; | ||||||
|  |  | ||||||
| use Illuminate\Contracts\Auth\MustVerifyEmail; |  | ||||||
| use Illuminate\Database\Eloquent\Factories\HasFactory; | use Illuminate\Database\Eloquent\Factories\HasFactory; | ||||||
| use Illuminate\Foundation\Auth\User as Authenticatable; | use Illuminate\Foundation\Auth\User as Authenticatable; | ||||||
| use Illuminate\Notifications\Notifiable; | use Illuminate\Notifications\Notifiable; | ||||||
| use Laravel\Sanctum\HasApiTokens; |  | ||||||
|  |  | ||||||
| class User extends Authenticatable | class User extends Authenticatable | ||||||
| { | { | ||||||
|     use HasApiTokens, HasFactory, Notifiable; |  | ||||||
|  |  | ||||||
|     /** |     use HasFactory, Notifiable; | ||||||
|      * The attributes that are mass assignable. |  | ||||||
|      * |  | ||||||
|      * @var array<int, string> |  | ||||||
|      */ |  | ||||||
|     protected $fillable = [ |     protected $fillable = [ | ||||||
|         'name', |         'name', | ||||||
|         'email', |         'email', | ||||||
|         'password', |         'password', | ||||||
|     ]; |     ]; | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * The attributes that should be hidden for serialization. |  | ||||||
|      * |  | ||||||
|      * @var array<int, string> |  | ||||||
|      */ |  | ||||||
|     protected $hidden = [ |     protected $hidden = [ | ||||||
|         'password', |         'password', | ||||||
|         'remember_token', |         'remember_token', | ||||||
|     ]; |     ]; | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * The attributes that should be cast. |  | ||||||
|      * |  | ||||||
|      * @var array<string, string> |  | ||||||
|      */ |  | ||||||
|     protected $casts = [ |     protected $casts = [ | ||||||
|         'email_verified_at' => 'datetime', |         'email_verified_at' => 'datetime', | ||||||
|     ]; |     ]; | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,28 +1,10 @@ | |||||||
| <?php | <?php | ||||||
|  |  | ||||||
|  | declare(strict_types=1); | ||||||
|  |  | ||||||
| namespace App\Providers; | namespace App\Providers; | ||||||
|  |  | ||||||
| use Illuminate\Support\ServiceProvider; | use Illuminate\Support\ServiceProvider; | ||||||
|  |  | ||||||
| class AppServiceProvider extends ServiceProvider | class AppServiceProvider extends ServiceProvider | ||||||
| { | {} | ||||||
|     /** |  | ||||||
|      * Register any application services. |  | ||||||
|      * |  | ||||||
|      * @return void |  | ||||||
|      */ |  | ||||||
|     public function register() |  | ||||||
|     { |  | ||||||
|         // |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * Bootstrap any application services. |  | ||||||
|      * |  | ||||||
|      * @return void |  | ||||||
|      */ |  | ||||||
|     public function boot() |  | ||||||
|     { |  | ||||||
|         // |  | ||||||
|     } |  | ||||||
| } |  | ||||||
|   | |||||||
| @@ -1,30 +1,17 @@ | |||||||
| <?php | <?php | ||||||
|  |  | ||||||
|  | declare(strict_types=1); | ||||||
|  |  | ||||||
| namespace App\Providers; | namespace App\Providers; | ||||||
|  |  | ||||||
| use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; | use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; | ||||||
| use Illuminate\Support\Facades\Gate; |  | ||||||
|  |  | ||||||
| class AuthServiceProvider extends ServiceProvider | class AuthServiceProvider extends ServiceProvider | ||||||
| { | { | ||||||
|     /** |  | ||||||
|      * The policy mappings for the application. |  | ||||||
|      * |  | ||||||
|      * @var array<class-string, class-string> |  | ||||||
|      */ |  | ||||||
|     protected $policies = [ |  | ||||||
|         // 'App\Models\Model' => 'App\Policies\ModelPolicy', |  | ||||||
|     ]; |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * Register any authentication / authorization services. |  | ||||||
|      * |  | ||||||
|      * @return void |  | ||||||
|      */ |  | ||||||
|     public function boot() |     public function boot() | ||||||
|     { |     { | ||||||
|         $this->registerPolicies(); |         $this->registerPolicies(); | ||||||
|  |  | ||||||
|         // |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,21 +0,0 @@ | |||||||
| <?php |  | ||||||
|  |  | ||||||
| namespace App\Providers; |  | ||||||
|  |  | ||||||
| use Illuminate\Support\Facades\Broadcast; |  | ||||||
| use Illuminate\Support\ServiceProvider; |  | ||||||
|  |  | ||||||
| class BroadcastServiceProvider extends ServiceProvider |  | ||||||
| { |  | ||||||
|     /** |  | ||||||
|      * Bootstrap any application services. |  | ||||||
|      * |  | ||||||
|      * @return void |  | ||||||
|      */ |  | ||||||
|     public function boot() |  | ||||||
|     { |  | ||||||
|         Broadcast::routes(); |  | ||||||
|  |  | ||||||
|         require base_path('routes/channels.php'); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @@ -1,5 +1,7 @@ | |||||||
| <?php | <?php | ||||||
|  |  | ||||||
|  | declare(strict_types=1); | ||||||
|  |  | ||||||
| namespace App\Providers; | namespace App\Providers; | ||||||
|  |  | ||||||
| use Illuminate\Support\ServiceProvider; | use Illuminate\Support\ServiceProvider; | ||||||
| @@ -8,14 +10,11 @@ use App\Repository\Interfaces\CategoryRepository as CategoryRepositoryInterface; | |||||||
|  |  | ||||||
| class CategoryServiceProvider extends ServiceProvider | class CategoryServiceProvider extends ServiceProvider | ||||||
| { | { | ||||||
|     /** |  | ||||||
|      * Register services. |  | ||||||
|      * |  | ||||||
|      * @return void |  | ||||||
|      */ |  | ||||||
|     public function register() |     public function register() | ||||||
|     { |     { | ||||||
|         $this->app |         $this->app | ||||||
|             ->bind(CategoryRepositoryInterface::class, CategoryRepository::class); |             ->bind(CategoryRepositoryInterface::class, CategoryRepository::class); | ||||||
|     } |     } | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,32 +0,0 @@ | |||||||
| <?php |  | ||||||
|  |  | ||||||
| namespace App\Providers; |  | ||||||
|  |  | ||||||
| use Illuminate\Auth\Events\Registered; |  | ||||||
| use Illuminate\Auth\Listeners\SendEmailVerificationNotification; |  | ||||||
| use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; |  | ||||||
| use Illuminate\Support\Facades\Event; |  | ||||||
|  |  | ||||||
| class EventServiceProvider extends ServiceProvider |  | ||||||
| { |  | ||||||
|     /** |  | ||||||
|      * The event listener mappings for the application. |  | ||||||
|      * |  | ||||||
|      * @var array<class-string, array<int, class-string>> |  | ||||||
|      */ |  | ||||||
|     protected $listen = [ |  | ||||||
|         Registered::class => [ |  | ||||||
|             SendEmailVerificationNotification::class, |  | ||||||
|         ], |  | ||||||
|     ]; |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * Register any events for your application. |  | ||||||
|      * |  | ||||||
|      * @return void |  | ||||||
|      */ |  | ||||||
|     public function boot() |  | ||||||
|     { |  | ||||||
|         // |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @@ -1,5 +1,7 @@ | |||||||
| <?php | <?php | ||||||
|  |  | ||||||
|  | declare(strict_types=1); | ||||||
|  |  | ||||||
| namespace App\Providers; | namespace App\Providers; | ||||||
|  |  | ||||||
| use Illuminate\Support\ServiceProvider; | use Illuminate\Support\ServiceProvider; | ||||||
| @@ -9,11 +11,6 @@ use App\Repository\ProjectRepository; | |||||||
| class ProjectServiceProvider extends ServiceProvider | class ProjectServiceProvider extends ServiceProvider | ||||||
| { | { | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * Register services. |  | ||||||
|      * |  | ||||||
|      * @return void |  | ||||||
|      */ |  | ||||||
|     public function register() |     public function register() | ||||||
|     { |     { | ||||||
|         $this->app->bind(ProjectRepositoryInterface::class, ProjectRepository::class); |         $this->app->bind(ProjectRepositoryInterface::class, ProjectRepository::class); | ||||||
|   | |||||||
| @@ -10,30 +10,11 @@ use Illuminate\Support\Facades\Route; | |||||||
|  |  | ||||||
| class RouteServiceProvider extends ServiceProvider | class RouteServiceProvider extends ServiceProvider | ||||||
| { | { | ||||||
|     /** |  | ||||||
|      * The path to the "home" route for your application. |  | ||||||
|      * |  | ||||||
|      * This is used by Laravel authentication to redirect users after login. |  | ||||||
|      * |  | ||||||
|      * @var string |  | ||||||
|      */ |  | ||||||
|     public const HOME = '/'; |  | ||||||
|  |  | ||||||
|     /** |     public const HOME = '/'; | ||||||
|      * The controller namespace for the application. |  | ||||||
|      * |  | ||||||
|      * When present, controller route declarations will automatically be prefixed with this namespace. |  | ||||||
|      * |  | ||||||
|      * @var string|null |  | ||||||
|      */ |  | ||||||
|     protected $namespace = 'App\\Http\\Controllers'; |     protected $namespace = 'App\\Http\\Controllers'; | ||||||
|  |  | ||||||
|     /** |     public function boot(): void | ||||||
|      * Define your route model bindings, pattern filters, etc. |  | ||||||
|      * |  | ||||||
|      * @return void |  | ||||||
|      */ |  | ||||||
|     public function boot() |  | ||||||
|     { |     { | ||||||
|         $this->configureRateLimiting(); |         $this->configureRateLimiting(); | ||||||
|  |  | ||||||
| @@ -50,15 +31,11 @@ class RouteServiceProvider extends ServiceProvider | |||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * Configure the rate limiters for the application. |  | ||||||
|      * |  | ||||||
|      * @return void |  | ||||||
|      */ |  | ||||||
|     protected function configureRateLimiting() |     protected function configureRateLimiting() | ||||||
|     { |     { | ||||||
|         RateLimiter::for('api', function (Request $request) { |         RateLimiter::for('api', function (Request $request) { | ||||||
|             return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip()); |             return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip()); | ||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
| @@ -9,7 +9,6 @@ | |||||||
|         "fruitcake/laravel-cors": "^2.0", |         "fruitcake/laravel-cors": "^2.0", | ||||||
|         "guzzlehttp/guzzle": "^7.0.1", |         "guzzlehttp/guzzle": "^7.0.1", | ||||||
|         "laravel/framework": "^8.75", |         "laravel/framework": "^8.75", | ||||||
|         "laravel/sanctum": "^2.11", |  | ||||||
|         "laravel/tinker": "^2.5" |         "laravel/tinker": "^2.5" | ||||||
|     }, |     }, | ||||||
|     "require-dev": { |     "require-dev": { | ||||||
|   | |||||||
							
								
								
									
										301
									
								
								composer.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										301
									
								
								composer.lock
									
									
									
										generated
									
									
									
								
							| @@ -4,7 +4,7 @@ | |||||||
|         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", |         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", | ||||||
|         "This file is @generated automatically" |         "This file is @generated automatically" | ||||||
|     ], |     ], | ||||||
|     "content-hash": "984f9e020c7324db66137ffb9fb98ce9", |     "content-hash": "5819f875b9c52e6db223ca260b767510", | ||||||
|     "packages": [ |     "packages": [ | ||||||
|         { |         { | ||||||
|             "name": "asm89/stack-cors", |             "name": "asm89/stack-cors", | ||||||
| @@ -959,16 +959,16 @@ | |||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "laravel/framework", |             "name": "laravel/framework", | ||||||
|             "version": "v8.83.8", |             "version": "v8.83.13", | ||||||
|             "source": { |             "source": { | ||||||
|                 "type": "git", |                 "type": "git", | ||||||
|                 "url": "https://github.com/laravel/framework.git", |                 "url": "https://github.com/laravel/framework.git", | ||||||
|                 "reference": "cf430301ad17656b3d918995bcdd0454c3c119b9" |                 "reference": "1eed68ec70c98d1a7a6f0fcedbea10cb6dd69a20" | ||||||
|             }, |             }, | ||||||
|             "dist": { |             "dist": { | ||||||
|                 "type": "zip", |                 "type": "zip", | ||||||
|                 "url": "https://api.github.com/repos/laravel/framework/zipball/cf430301ad17656b3d918995bcdd0454c3c119b9", |                 "url": "https://api.github.com/repos/laravel/framework/zipball/1eed68ec70c98d1a7a6f0fcedbea10cb6dd69a20", | ||||||
|                 "reference": "cf430301ad17656b3d918995bcdd0454c3c119b9", |                 "reference": "1eed68ec70c98d1a7a6f0fcedbea10cb6dd69a20", | ||||||
|                 "shasum": "" |                 "shasum": "" | ||||||
|             }, |             }, | ||||||
|             "require": { |             "require": { | ||||||
| @@ -1128,85 +1128,20 @@ | |||||||
|                 "issues": "https://github.com/laravel/framework/issues", |                 "issues": "https://github.com/laravel/framework/issues", | ||||||
|                 "source": "https://github.com/laravel/framework" |                 "source": "https://github.com/laravel/framework" | ||||||
|             }, |             }, | ||||||
|             "time": "2022-04-12T13:49:56+00:00" |             "time": "2022-05-17T14:08:01+00:00" | ||||||
|         }, |  | ||||||
|         { |  | ||||||
|             "name": "laravel/sanctum", |  | ||||||
|             "version": "v2.15.1", |  | ||||||
|             "source": { |  | ||||||
|                 "type": "git", |  | ||||||
|                 "url": "https://github.com/laravel/sanctum.git", |  | ||||||
|                 "reference": "31fbe6f85aee080c4dc2f9b03dc6dd5d0ee72473" |  | ||||||
|             }, |  | ||||||
|             "dist": { |  | ||||||
|                 "type": "zip", |  | ||||||
|                 "url": "https://api.github.com/repos/laravel/sanctum/zipball/31fbe6f85aee080c4dc2f9b03dc6dd5d0ee72473", |  | ||||||
|                 "reference": "31fbe6f85aee080c4dc2f9b03dc6dd5d0ee72473", |  | ||||||
|                 "shasum": "" |  | ||||||
|             }, |  | ||||||
|             "require": { |  | ||||||
|                 "ext-json": "*", |  | ||||||
|                 "illuminate/console": "^6.9|^7.0|^8.0|^9.0", |  | ||||||
|                 "illuminate/contracts": "^6.9|^7.0|^8.0|^9.0", |  | ||||||
|                 "illuminate/database": "^6.9|^7.0|^8.0|^9.0", |  | ||||||
|                 "illuminate/support": "^6.9|^7.0|^8.0|^9.0", |  | ||||||
|                 "php": "^7.2|^8.0" |  | ||||||
|             }, |  | ||||||
|             "require-dev": { |  | ||||||
|                 "mockery/mockery": "^1.0", |  | ||||||
|                 "orchestra/testbench": "^4.0|^5.0|^6.0|^7.0", |  | ||||||
|                 "phpunit/phpunit": "^8.0|^9.3" |  | ||||||
|             }, |  | ||||||
|             "type": "library", |  | ||||||
|             "extra": { |  | ||||||
|                 "branch-alias": { |  | ||||||
|                     "dev-master": "2.x-dev" |  | ||||||
|                 }, |  | ||||||
|                 "laravel": { |  | ||||||
|                     "providers": [ |  | ||||||
|                         "Laravel\\Sanctum\\SanctumServiceProvider" |  | ||||||
|                     ] |  | ||||||
|                 } |  | ||||||
|             }, |  | ||||||
|             "autoload": { |  | ||||||
|                 "psr-4": { |  | ||||||
|                     "Laravel\\Sanctum\\": "src/" |  | ||||||
|                 } |  | ||||||
|             }, |  | ||||||
|             "notification-url": "https://packagist.org/downloads/", |  | ||||||
|             "license": [ |  | ||||||
|                 "MIT" |  | ||||||
|             ], |  | ||||||
|             "authors": [ |  | ||||||
|                 { |  | ||||||
|                     "name": "Taylor Otwell", |  | ||||||
|                     "email": "taylor@laravel.com" |  | ||||||
|                 } |  | ||||||
|             ], |  | ||||||
|             "description": "Laravel Sanctum provides a featherweight authentication system for SPAs and simple APIs.", |  | ||||||
|             "keywords": [ |  | ||||||
|                 "auth", |  | ||||||
|                 "laravel", |  | ||||||
|                 "sanctum" |  | ||||||
|             ], |  | ||||||
|             "support": { |  | ||||||
|                 "issues": "https://github.com/laravel/sanctum/issues", |  | ||||||
|                 "source": "https://github.com/laravel/sanctum" |  | ||||||
|             }, |  | ||||||
|             "time": "2022-04-08T13:39:49+00:00" |  | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "laravel/serializable-closure", |             "name": "laravel/serializable-closure", | ||||||
|             "version": "v1.1.1", |             "version": "v1.2.0", | ||||||
|             "source": { |             "source": { | ||||||
|                 "type": "git", |                 "type": "git", | ||||||
|                 "url": "https://github.com/laravel/serializable-closure.git", |                 "url": "https://github.com/laravel/serializable-closure.git", | ||||||
|                 "reference": "9e4b005daa20b0c161f3845040046dc9ddc1d74e" |                 "reference": "09f0e9fb61829f628205b7c94906c28740ff9540" | ||||||
|             }, |             }, | ||||||
|             "dist": { |             "dist": { | ||||||
|                 "type": "zip", |                 "type": "zip", | ||||||
|                 "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/9e4b005daa20b0c161f3845040046dc9ddc1d74e", |                 "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/09f0e9fb61829f628205b7c94906c28740ff9540", | ||||||
|                 "reference": "9e4b005daa20b0c161f3845040046dc9ddc1d74e", |                 "reference": "09f0e9fb61829f628205b7c94906c28740ff9540", | ||||||
|                 "shasum": "" |                 "shasum": "" | ||||||
|             }, |             }, | ||||||
|             "require": { |             "require": { | ||||||
| @@ -1252,7 +1187,7 @@ | |||||||
|                 "issues": "https://github.com/laravel/serializable-closure/issues", |                 "issues": "https://github.com/laravel/serializable-closure/issues", | ||||||
|                 "source": "https://github.com/laravel/serializable-closure" |                 "source": "https://github.com/laravel/serializable-closure" | ||||||
|             }, |             }, | ||||||
|             "time": "2022-02-11T19:23:53+00:00" |             "time": "2022-05-16T17:09:47+00:00" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "laravel/tinker", |             "name": "laravel/tinker", | ||||||
| @@ -1324,16 +1259,16 @@ | |||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "league/commonmark", |             "name": "league/commonmark", | ||||||
|             "version": "2.3.0", |             "version": "2.3.1", | ||||||
|             "source": { |             "source": { | ||||||
|                 "type": "git", |                 "type": "git", | ||||||
|                 "url": "https://github.com/thephpleague/commonmark.git", |                 "url": "https://github.com/thephpleague/commonmark.git", | ||||||
|                 "reference": "32a49eb2b38fe5e5c417ab748a45d0beaab97955" |                 "reference": "cb36fee279f7fca01d5d9399ddd1b37e48e2eca1" | ||||||
|             }, |             }, | ||||||
|             "dist": { |             "dist": { | ||||||
|                 "type": "zip", |                 "type": "zip", | ||||||
|                 "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/32a49eb2b38fe5e5c417ab748a45d0beaab97955", |                 "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/cb36fee279f7fca01d5d9399ddd1b37e48e2eca1", | ||||||
|                 "reference": "32a49eb2b38fe5e5c417ab748a45d0beaab97955", |                 "reference": "cb36fee279f7fca01d5d9399ddd1b37e48e2eca1", | ||||||
|                 "shasum": "" |                 "shasum": "" | ||||||
|             }, |             }, | ||||||
|             "require": { |             "require": { | ||||||
| @@ -1426,7 +1361,7 @@ | |||||||
|                     "type": "tidelift" |                     "type": "tidelift" | ||||||
|                 } |                 } | ||||||
|             ], |             ], | ||||||
|             "time": "2022-04-07T22:37:05+00:00" |             "time": "2022-05-14T15:37:39+00:00" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "league/config", |             "name": "league/config", | ||||||
| @@ -1662,16 +1597,16 @@ | |||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "monolog/monolog", |             "name": "monolog/monolog", | ||||||
|             "version": "2.5.0", |             "version": "2.6.0", | ||||||
|             "source": { |             "source": { | ||||||
|                 "type": "git", |                 "type": "git", | ||||||
|                 "url": "https://github.com/Seldaek/monolog.git", |                 "url": "https://github.com/Seldaek/monolog.git", | ||||||
|                 "reference": "4192345e260f1d51b365536199744b987e160edc" |                 "reference": "247918972acd74356b0a91dfaa5adcaec069b6c0" | ||||||
|             }, |             }, | ||||||
|             "dist": { |             "dist": { | ||||||
|                 "type": "zip", |                 "type": "zip", | ||||||
|                 "url": "https://api.github.com/repos/Seldaek/monolog/zipball/4192345e260f1d51b365536199744b987e160edc", |                 "url": "https://api.github.com/repos/Seldaek/monolog/zipball/247918972acd74356b0a91dfaa5adcaec069b6c0", | ||||||
|                 "reference": "4192345e260f1d51b365536199744b987e160edc", |                 "reference": "247918972acd74356b0a91dfaa5adcaec069b6c0", | ||||||
|                 "shasum": "" |                 "shasum": "" | ||||||
|             }, |             }, | ||||||
|             "require": { |             "require": { | ||||||
| @@ -1684,18 +1619,23 @@ | |||||||
|             "require-dev": { |             "require-dev": { | ||||||
|                 "aws/aws-sdk-php": "^2.4.9 || ^3.0", |                 "aws/aws-sdk-php": "^2.4.9 || ^3.0", | ||||||
|                 "doctrine/couchdb": "~1.0@dev", |                 "doctrine/couchdb": "~1.0@dev", | ||||||
|                 "elasticsearch/elasticsearch": "^7", |                 "elasticsearch/elasticsearch": "^7 || ^8", | ||||||
|  |                 "ext-json": "*", | ||||||
|                 "graylog2/gelf-php": "^1.4.2", |                 "graylog2/gelf-php": "^1.4.2", | ||||||
|  |                 "guzzlehttp/guzzle": "^7.4", | ||||||
|  |                 "guzzlehttp/psr7": "^2.2", | ||||||
|                 "mongodb/mongodb": "^1.8", |                 "mongodb/mongodb": "^1.8", | ||||||
|                 "php-amqplib/php-amqplib": "~2.4 || ^3", |                 "php-amqplib/php-amqplib": "~2.4 || ^3", | ||||||
|                 "php-console/php-console": "^3.1.3", |                 "php-console/php-console": "^3.1.3", | ||||||
|                 "phpspec/prophecy": "^1.6.1", |                 "phpspec/prophecy": "^1.15", | ||||||
|                 "phpstan/phpstan": "^0.12.91", |                 "phpstan/phpstan": "^0.12.91", | ||||||
|                 "phpunit/phpunit": "^8.5", |                 "phpunit/phpunit": "^8.5.14", | ||||||
|                 "predis/predis": "^1.1", |                 "predis/predis": "^1.1", | ||||||
|                 "rollbar/rollbar": "^1.3 || ^2 || ^3", |                 "rollbar/rollbar": "^1.3 || ^2 || ^3", | ||||||
|                 "ruflin/elastica": ">=0.90@dev", |                 "ruflin/elastica": "^7", | ||||||
|                 "swiftmailer/swiftmailer": "^5.3|^6.0" |                 "swiftmailer/swiftmailer": "^5.3|^6.0", | ||||||
|  |                 "symfony/mailer": "^5.4 || ^6", | ||||||
|  |                 "symfony/mime": "^5.4 || ^6" | ||||||
|             }, |             }, | ||||||
|             "suggest": { |             "suggest": { | ||||||
|                 "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", |                 "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", | ||||||
| @@ -1745,7 +1685,7 @@ | |||||||
|             ], |             ], | ||||||
|             "support": { |             "support": { | ||||||
|                 "issues": "https://github.com/Seldaek/monolog/issues", |                 "issues": "https://github.com/Seldaek/monolog/issues", | ||||||
|                 "source": "https://github.com/Seldaek/monolog/tree/2.5.0" |                 "source": "https://github.com/Seldaek/monolog/tree/2.6.0" | ||||||
|             }, |             }, | ||||||
|             "funding": [ |             "funding": [ | ||||||
|                 { |                 { | ||||||
| @@ -1757,20 +1697,20 @@ | |||||||
|                     "type": "tidelift" |                     "type": "tidelift" | ||||||
|                 } |                 } | ||||||
|             ], |             ], | ||||||
|             "time": "2022-04-08T15:43:54+00:00" |             "time": "2022-05-10T09:36:00+00:00" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "nesbot/carbon", |             "name": "nesbot/carbon", | ||||||
|             "version": "2.57.0", |             "version": "2.58.0", | ||||||
|             "source": { |             "source": { | ||||||
|                 "type": "git", |                 "type": "git", | ||||||
|                 "url": "https://github.com/briannesbitt/Carbon.git", |                 "url": "https://github.com/briannesbitt/Carbon.git", | ||||||
|                 "reference": "4a54375c21eea4811dbd1149fe6b246517554e78" |                 "reference": "97a34af22bde8d0ac20ab34b29d7bfe360902055" | ||||||
|             }, |             }, | ||||||
|             "dist": { |             "dist": { | ||||||
|                 "type": "zip", |                 "type": "zip", | ||||||
|                 "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/4a54375c21eea4811dbd1149fe6b246517554e78", |                 "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/97a34af22bde8d0ac20ab34b29d7bfe360902055", | ||||||
|                 "reference": "4a54375c21eea4811dbd1149fe6b246517554e78", |                 "reference": "97a34af22bde8d0ac20ab34b29d7bfe360902055", | ||||||
|                 "shasum": "" |                 "shasum": "" | ||||||
|             }, |             }, | ||||||
|             "require": { |             "require": { | ||||||
| @@ -1788,7 +1728,8 @@ | |||||||
|                 "phpmd/phpmd": "^2.9", |                 "phpmd/phpmd": "^2.9", | ||||||
|                 "phpstan/extension-installer": "^1.0", |                 "phpstan/extension-installer": "^1.0", | ||||||
|                 "phpstan/phpstan": "^0.12.54 || ^1.0", |                 "phpstan/phpstan": "^0.12.54 || ^1.0", | ||||||
|                 "phpunit/phpunit": "^7.5.20 || ^8.5.14", |                 "phpunit/php-file-iterator": "^2.0.5", | ||||||
|  |                 "phpunit/phpunit": "^7.5.20 || ^8.5.23", | ||||||
|                 "squizlabs/php_codesniffer": "^3.4" |                 "squizlabs/php_codesniffer": "^3.4" | ||||||
|             }, |             }, | ||||||
|             "bin": [ |             "bin": [ | ||||||
| @@ -1853,7 +1794,7 @@ | |||||||
|                     "type": "tidelift" |                     "type": "tidelift" | ||||||
|                 } |                 } | ||||||
|             ], |             ], | ||||||
|             "time": "2022-02-13T18:13:33+00:00" |             "time": "2022-04-25T19:31:17+00:00" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "nette/schema", |             "name": "nette/schema", | ||||||
| @@ -2555,16 +2496,16 @@ | |||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "psy/psysh", |             "name": "psy/psysh", | ||||||
|             "version": "v0.11.2", |             "version": "v0.11.4", | ||||||
|             "source": { |             "source": { | ||||||
|                 "type": "git", |                 "type": "git", | ||||||
|                 "url": "https://github.com/bobthecow/psysh.git", |                 "url": "https://github.com/bobthecow/psysh.git", | ||||||
|                 "reference": "7f7da640d68b9c9fec819caae7c744a213df6514" |                 "reference": "05c544b339b112226ad14803e1e5b09a61957454" | ||||||
|             }, |             }, | ||||||
|             "dist": { |             "dist": { | ||||||
|                 "type": "zip", |                 "type": "zip", | ||||||
|                 "url": "https://api.github.com/repos/bobthecow/psysh/zipball/7f7da640d68b9c9fec819caae7c744a213df6514", |                 "url": "https://api.github.com/repos/bobthecow/psysh/zipball/05c544b339b112226ad14803e1e5b09a61957454", | ||||||
|                 "reference": "7f7da640d68b9c9fec819caae7c744a213df6514", |                 "reference": "05c544b339b112226ad14803e1e5b09a61957454", | ||||||
|                 "shasum": "" |                 "shasum": "" | ||||||
|             }, |             }, | ||||||
|             "require": { |             "require": { | ||||||
| @@ -2579,15 +2520,13 @@ | |||||||
|                 "symfony/console": "4.4.37 || 5.3.14 || 5.3.15 || 5.4.3 || 5.4.4 || 6.0.3 || 6.0.4" |                 "symfony/console": "4.4.37 || 5.3.14 || 5.3.15 || 5.4.3 || 5.4.4 || 6.0.3 || 6.0.4" | ||||||
|             }, |             }, | ||||||
|             "require-dev": { |             "require-dev": { | ||||||
|                 "bamarni/composer-bin-plugin": "^1.2", |                 "bamarni/composer-bin-plugin": "^1.2" | ||||||
|                 "hoa/console": "3.17.05.02" |  | ||||||
|             }, |             }, | ||||||
|             "suggest": { |             "suggest": { | ||||||
|                 "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)", |                 "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)", | ||||||
|                 "ext-pdo-sqlite": "The doc command requires SQLite to work.", |                 "ext-pdo-sqlite": "The doc command requires SQLite to work.", | ||||||
|                 "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well.", |                 "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well.", | ||||||
|                 "ext-readline": "Enables support for arrow-key history navigation, and showing and manipulating command history.", |                 "ext-readline": "Enables support for arrow-key history navigation, and showing and manipulating command history." | ||||||
|                 "hoa/console": "A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit." |  | ||||||
|             }, |             }, | ||||||
|             "bin": [ |             "bin": [ | ||||||
|                 "bin/psysh" |                 "bin/psysh" | ||||||
| @@ -2627,9 +2566,9 @@ | |||||||
|             ], |             ], | ||||||
|             "support": { |             "support": { | ||||||
|                 "issues": "https://github.com/bobthecow/psysh/issues", |                 "issues": "https://github.com/bobthecow/psysh/issues", | ||||||
|                 "source": "https://github.com/bobthecow/psysh/tree/v0.11.2" |                 "source": "https://github.com/bobthecow/psysh/tree/v0.11.4" | ||||||
|             }, |             }, | ||||||
|             "time": "2022-02-28T15:28:54+00:00" |             "time": "2022-05-06T12:49:14+00:00" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "ralouphie/getallheaders", |             "name": "ralouphie/getallheaders", | ||||||
| @@ -2926,16 +2865,16 @@ | |||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "symfony/console", |             "name": "symfony/console", | ||||||
|             "version": "v5.4.7", |             "version": "v5.4.8", | ||||||
|             "source": { |             "source": { | ||||||
|                 "type": "git", |                 "type": "git", | ||||||
|                 "url": "https://github.com/symfony/console.git", |                 "url": "https://github.com/symfony/console.git", | ||||||
|                 "reference": "900275254f0a1a2afff1ab0e11abd5587a10e1d6" |                 "reference": "ffe3aed36c4d60da2cf1b0a1cee6b8f2e5fa881b" | ||||||
|             }, |             }, | ||||||
|             "dist": { |             "dist": { | ||||||
|                 "type": "zip", |                 "type": "zip", | ||||||
|                 "url": "https://api.github.com/repos/symfony/console/zipball/900275254f0a1a2afff1ab0e11abd5587a10e1d6", |                 "url": "https://api.github.com/repos/symfony/console/zipball/ffe3aed36c4d60da2cf1b0a1cee6b8f2e5fa881b", | ||||||
|                 "reference": "900275254f0a1a2afff1ab0e11abd5587a10e1d6", |                 "reference": "ffe3aed36c4d60da2cf1b0a1cee6b8f2e5fa881b", | ||||||
|                 "shasum": "" |                 "shasum": "" | ||||||
|             }, |             }, | ||||||
|             "require": { |             "require": { | ||||||
| @@ -3005,7 +2944,7 @@ | |||||||
|                 "terminal" |                 "terminal" | ||||||
|             ], |             ], | ||||||
|             "support": { |             "support": { | ||||||
|                 "source": "https://github.com/symfony/console/tree/v5.4.7" |                 "source": "https://github.com/symfony/console/tree/v5.4.8" | ||||||
|             }, |             }, | ||||||
|             "funding": [ |             "funding": [ | ||||||
|                 { |                 { | ||||||
| @@ -3021,7 +2960,7 @@ | |||||||
|                     "type": "tidelift" |                     "type": "tidelift" | ||||||
|                 } |                 } | ||||||
|             ], |             ], | ||||||
|             "time": "2022-03-31T17:09:19+00:00" |             "time": "2022-04-12T16:02:29+00:00" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "symfony/css-selector", |             "name": "symfony/css-selector", | ||||||
| @@ -3157,16 +3096,16 @@ | |||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "symfony/error-handler", |             "name": "symfony/error-handler", | ||||||
|             "version": "v5.4.7", |             "version": "v5.4.8", | ||||||
|             "source": { |             "source": { | ||||||
|                 "type": "git", |                 "type": "git", | ||||||
|                 "url": "https://github.com/symfony/error-handler.git", |                 "url": "https://github.com/symfony/error-handler.git", | ||||||
|                 "reference": "060bc01856a1846e3e4385261bc9ed11a1dd7b6a" |                 "reference": "c1fcde614dfe99d62a83b796a53b8bad358b266a" | ||||||
|             }, |             }, | ||||||
|             "dist": { |             "dist": { | ||||||
|                 "type": "zip", |                 "type": "zip", | ||||||
|                 "url": "https://api.github.com/repos/symfony/error-handler/zipball/060bc01856a1846e3e4385261bc9ed11a1dd7b6a", |                 "url": "https://api.github.com/repos/symfony/error-handler/zipball/c1fcde614dfe99d62a83b796a53b8bad358b266a", | ||||||
|                 "reference": "060bc01856a1846e3e4385261bc9ed11a1dd7b6a", |                 "reference": "c1fcde614dfe99d62a83b796a53b8bad358b266a", | ||||||
|                 "shasum": "" |                 "shasum": "" | ||||||
|             }, |             }, | ||||||
|             "require": { |             "require": { | ||||||
| @@ -3208,7 +3147,7 @@ | |||||||
|             "description": "Provides tools to manage errors and ease debugging PHP code", |             "description": "Provides tools to manage errors and ease debugging PHP code", | ||||||
|             "homepage": "https://symfony.com", |             "homepage": "https://symfony.com", | ||||||
|             "support": { |             "support": { | ||||||
|                 "source": "https://github.com/symfony/error-handler/tree/v5.4.7" |                 "source": "https://github.com/symfony/error-handler/tree/v5.4.8" | ||||||
|             }, |             }, | ||||||
|             "funding": [ |             "funding": [ | ||||||
|                 { |                 { | ||||||
| @@ -3224,7 +3163,7 @@ | |||||||
|                     "type": "tidelift" |                     "type": "tidelift" | ||||||
|                 } |                 } | ||||||
|             ], |             ], | ||||||
|             "time": "2022-03-18T16:21:29+00:00" |             "time": "2022-04-12T15:48:08+00:00" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "symfony/event-dispatcher", |             "name": "symfony/event-dispatcher", | ||||||
| @@ -3390,16 +3329,16 @@ | |||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "symfony/finder", |             "name": "symfony/finder", | ||||||
|             "version": "v5.4.3", |             "version": "v5.4.8", | ||||||
|             "source": { |             "source": { | ||||||
|                 "type": "git", |                 "type": "git", | ||||||
|                 "url": "https://github.com/symfony/finder.git", |                 "url": "https://github.com/symfony/finder.git", | ||||||
|                 "reference": "231313534dded84c7ecaa79d14bc5da4ccb69b7d" |                 "reference": "9b630f3427f3ebe7cd346c277a1408b00249dad9" | ||||||
|             }, |             }, | ||||||
|             "dist": { |             "dist": { | ||||||
|                 "type": "zip", |                 "type": "zip", | ||||||
|                 "url": "https://api.github.com/repos/symfony/finder/zipball/231313534dded84c7ecaa79d14bc5da4ccb69b7d", |                 "url": "https://api.github.com/repos/symfony/finder/zipball/9b630f3427f3ebe7cd346c277a1408b00249dad9", | ||||||
|                 "reference": "231313534dded84c7ecaa79d14bc5da4ccb69b7d", |                 "reference": "9b630f3427f3ebe7cd346c277a1408b00249dad9", | ||||||
|                 "shasum": "" |                 "shasum": "" | ||||||
|             }, |             }, | ||||||
|             "require": { |             "require": { | ||||||
| @@ -3433,7 +3372,7 @@ | |||||||
|             "description": "Finds files and directories via an intuitive fluent interface", |             "description": "Finds files and directories via an intuitive fluent interface", | ||||||
|             "homepage": "https://symfony.com", |             "homepage": "https://symfony.com", | ||||||
|             "support": { |             "support": { | ||||||
|                 "source": "https://github.com/symfony/finder/tree/v5.4.3" |                 "source": "https://github.com/symfony/finder/tree/v5.4.8" | ||||||
|             }, |             }, | ||||||
|             "funding": [ |             "funding": [ | ||||||
|                 { |                 { | ||||||
| @@ -3449,20 +3388,20 @@ | |||||||
|                     "type": "tidelift" |                     "type": "tidelift" | ||||||
|                 } |                 } | ||||||
|             ], |             ], | ||||||
|             "time": "2022-01-26T16:34:36+00:00" |             "time": "2022-04-15T08:07:45+00:00" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "symfony/http-foundation", |             "name": "symfony/http-foundation", | ||||||
|             "version": "v5.4.6", |             "version": "v5.4.8", | ||||||
|             "source": { |             "source": { | ||||||
|                 "type": "git", |                 "type": "git", | ||||||
|                 "url": "https://github.com/symfony/http-foundation.git", |                 "url": "https://github.com/symfony/http-foundation.git", | ||||||
|                 "reference": "34e89bc147633c0f9dd6caaaf56da3b806a21465" |                 "reference": "ff2818d1c3d49860bcae1f2cbb5eb00fcd3bf9e2" | ||||||
|             }, |             }, | ||||||
|             "dist": { |             "dist": { | ||||||
|                 "type": "zip", |                 "type": "zip", | ||||||
|                 "url": "https://api.github.com/repos/symfony/http-foundation/zipball/34e89bc147633c0f9dd6caaaf56da3b806a21465", |                 "url": "https://api.github.com/repos/symfony/http-foundation/zipball/ff2818d1c3d49860bcae1f2cbb5eb00fcd3bf9e2", | ||||||
|                 "reference": "34e89bc147633c0f9dd6caaaf56da3b806a21465", |                 "reference": "ff2818d1c3d49860bcae1f2cbb5eb00fcd3bf9e2", | ||||||
|                 "shasum": "" |                 "shasum": "" | ||||||
|             }, |             }, | ||||||
|             "require": { |             "require": { | ||||||
| @@ -3506,7 +3445,7 @@ | |||||||
|             "description": "Defines an object-oriented layer for the HTTP specification", |             "description": "Defines an object-oriented layer for the HTTP specification", | ||||||
|             "homepage": "https://symfony.com", |             "homepage": "https://symfony.com", | ||||||
|             "support": { |             "support": { | ||||||
|                 "source": "https://github.com/symfony/http-foundation/tree/v5.4.6" |                 "source": "https://github.com/symfony/http-foundation/tree/v5.4.8" | ||||||
|             }, |             }, | ||||||
|             "funding": [ |             "funding": [ | ||||||
|                 { |                 { | ||||||
| @@ -3522,20 +3461,20 @@ | |||||||
|                     "type": "tidelift" |                     "type": "tidelift" | ||||||
|                 } |                 } | ||||||
|             ], |             ], | ||||||
|             "time": "2022-03-05T21:03:43+00:00" |             "time": "2022-04-22T08:14:12+00:00" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "symfony/http-kernel", |             "name": "symfony/http-kernel", | ||||||
|             "version": "v5.4.7", |             "version": "v5.4.8", | ||||||
|             "source": { |             "source": { | ||||||
|                 "type": "git", |                 "type": "git", | ||||||
|                 "url": "https://github.com/symfony/http-kernel.git", |                 "url": "https://github.com/symfony/http-kernel.git", | ||||||
|                 "reference": "509243b9b3656db966284c45dffce9316c1ecc5c" |                 "reference": "cf7e61106abfc19b305ca0aedc41724ced89a02a" | ||||||
|             }, |             }, | ||||||
|             "dist": { |             "dist": { | ||||||
|                 "type": "zip", |                 "type": "zip", | ||||||
|                 "url": "https://api.github.com/repos/symfony/http-kernel/zipball/509243b9b3656db966284c45dffce9316c1ecc5c", |                 "url": "https://api.github.com/repos/symfony/http-kernel/zipball/cf7e61106abfc19b305ca0aedc41724ced89a02a", | ||||||
|                 "reference": "509243b9b3656db966284c45dffce9316c1ecc5c", |                 "reference": "cf7e61106abfc19b305ca0aedc41724ced89a02a", | ||||||
|                 "shasum": "" |                 "shasum": "" | ||||||
|             }, |             }, | ||||||
|             "require": { |             "require": { | ||||||
| @@ -3618,7 +3557,7 @@ | |||||||
|             "description": "Provides a structured process for converting a Request into a Response", |             "description": "Provides a structured process for converting a Request into a Response", | ||||||
|             "homepage": "https://symfony.com", |             "homepage": "https://symfony.com", | ||||||
|             "support": { |             "support": { | ||||||
|                 "source": "https://github.com/symfony/http-kernel/tree/v5.4.7" |                 "source": "https://github.com/symfony/http-kernel/tree/v5.4.8" | ||||||
|             }, |             }, | ||||||
|             "funding": [ |             "funding": [ | ||||||
|                 { |                 { | ||||||
| @@ -3634,20 +3573,20 @@ | |||||||
|                     "type": "tidelift" |                     "type": "tidelift" | ||||||
|                 } |                 } | ||||||
|             ], |             ], | ||||||
|             "time": "2022-04-02T06:04:20+00:00" |             "time": "2022-04-27T17:22:21+00:00" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "symfony/mime", |             "name": "symfony/mime", | ||||||
|             "version": "v5.4.7", |             "version": "v5.4.8", | ||||||
|             "source": { |             "source": { | ||||||
|                 "type": "git", |                 "type": "git", | ||||||
|                 "url": "https://github.com/symfony/mime.git", |                 "url": "https://github.com/symfony/mime.git", | ||||||
|                 "reference": "92d27a34dea2e199fa9b687e3fff3a7d169b7b1c" |                 "reference": "af49bc163ec3272f677bde3bc44c0d766c1fd662" | ||||||
|             }, |             }, | ||||||
|             "dist": { |             "dist": { | ||||||
|                 "type": "zip", |                 "type": "zip", | ||||||
|                 "url": "https://api.github.com/repos/symfony/mime/zipball/92d27a34dea2e199fa9b687e3fff3a7d169b7b1c", |                 "url": "https://api.github.com/repos/symfony/mime/zipball/af49bc163ec3272f677bde3bc44c0d766c1fd662", | ||||||
|                 "reference": "92d27a34dea2e199fa9b687e3fff3a7d169b7b1c", |                 "reference": "af49bc163ec3272f677bde3bc44c0d766c1fd662", | ||||||
|                 "shasum": "" |                 "shasum": "" | ||||||
|             }, |             }, | ||||||
|             "require": { |             "require": { | ||||||
| @@ -3701,7 +3640,7 @@ | |||||||
|                 "mime-type" |                 "mime-type" | ||||||
|             ], |             ], | ||||||
|             "support": { |             "support": { | ||||||
|                 "source": "https://github.com/symfony/mime/tree/v5.4.7" |                 "source": "https://github.com/symfony/mime/tree/v5.4.8" | ||||||
|             }, |             }, | ||||||
|             "funding": [ |             "funding": [ | ||||||
|                 { |                 { | ||||||
| @@ -3717,7 +3656,7 @@ | |||||||
|                     "type": "tidelift" |                     "type": "tidelift" | ||||||
|                 } |                 } | ||||||
|             ], |             ], | ||||||
|             "time": "2022-03-11T16:08:05+00:00" |             "time": "2022-04-12T15:48:08+00:00" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "symfony/polyfill-ctype", |             "name": "symfony/polyfill-ctype", | ||||||
| @@ -4538,16 +4477,16 @@ | |||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "symfony/process", |             "name": "symfony/process", | ||||||
|             "version": "v5.4.7", |             "version": "v5.4.8", | ||||||
|             "source": { |             "source": { | ||||||
|                 "type": "git", |                 "type": "git", | ||||||
|                 "url": "https://github.com/symfony/process.git", |                 "url": "https://github.com/symfony/process.git", | ||||||
|                 "reference": "38a44b2517b470a436e1c944bf9b9ba3961137fb" |                 "reference": "597f3fff8e3e91836bb0bd38f5718b56ddbde2f3" | ||||||
|             }, |             }, | ||||||
|             "dist": { |             "dist": { | ||||||
|                 "type": "zip", |                 "type": "zip", | ||||||
|                 "url": "https://api.github.com/repos/symfony/process/zipball/38a44b2517b470a436e1c944bf9b9ba3961137fb", |                 "url": "https://api.github.com/repos/symfony/process/zipball/597f3fff8e3e91836bb0bd38f5718b56ddbde2f3", | ||||||
|                 "reference": "38a44b2517b470a436e1c944bf9b9ba3961137fb", |                 "reference": "597f3fff8e3e91836bb0bd38f5718b56ddbde2f3", | ||||||
|                 "shasum": "" |                 "shasum": "" | ||||||
|             }, |             }, | ||||||
|             "require": { |             "require": { | ||||||
| @@ -4580,7 +4519,7 @@ | |||||||
|             "description": "Executes commands in sub-processes", |             "description": "Executes commands in sub-processes", | ||||||
|             "homepage": "https://symfony.com", |             "homepage": "https://symfony.com", | ||||||
|             "support": { |             "support": { | ||||||
|                 "source": "https://github.com/symfony/process/tree/v5.4.7" |                 "source": "https://github.com/symfony/process/tree/v5.4.8" | ||||||
|             }, |             }, | ||||||
|             "funding": [ |             "funding": [ | ||||||
|                 { |                 { | ||||||
| @@ -4596,20 +4535,20 @@ | |||||||
|                     "type": "tidelift" |                     "type": "tidelift" | ||||||
|                 } |                 } | ||||||
|             ], |             ], | ||||||
|             "time": "2022-03-18T16:18:52+00:00" |             "time": "2022-04-08T05:07:18+00:00" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "symfony/routing", |             "name": "symfony/routing", | ||||||
|             "version": "v5.4.3", |             "version": "v5.4.8", | ||||||
|             "source": { |             "source": { | ||||||
|                 "type": "git", |                 "type": "git", | ||||||
|                 "url": "https://github.com/symfony/routing.git", |                 "url": "https://github.com/symfony/routing.git", | ||||||
|                 "reference": "44b29c7a94e867ccde1da604792f11a469958981" |                 "reference": "e07817bb6244ea33ef5ad31abc4a9288bef3f2f7" | ||||||
|             }, |             }, | ||||||
|             "dist": { |             "dist": { | ||||||
|                 "type": "zip", |                 "type": "zip", | ||||||
|                 "url": "https://api.github.com/repos/symfony/routing/zipball/44b29c7a94e867ccde1da604792f11a469958981", |                 "url": "https://api.github.com/repos/symfony/routing/zipball/e07817bb6244ea33ef5ad31abc4a9288bef3f2f7", | ||||||
|                 "reference": "44b29c7a94e867ccde1da604792f11a469958981", |                 "reference": "e07817bb6244ea33ef5ad31abc4a9288bef3f2f7", | ||||||
|                 "shasum": "" |                 "shasum": "" | ||||||
|             }, |             }, | ||||||
|             "require": { |             "require": { | ||||||
| @@ -4670,7 +4609,7 @@ | |||||||
|                 "url" |                 "url" | ||||||
|             ], |             ], | ||||||
|             "support": { |             "support": { | ||||||
|                 "source": "https://github.com/symfony/routing/tree/v5.4.3" |                 "source": "https://github.com/symfony/routing/tree/v5.4.8" | ||||||
|             }, |             }, | ||||||
|             "funding": [ |             "funding": [ | ||||||
|                 { |                 { | ||||||
| @@ -4686,7 +4625,7 @@ | |||||||
|                     "type": "tidelift" |                     "type": "tidelift" | ||||||
|                 } |                 } | ||||||
|             ], |             ], | ||||||
|             "time": "2022-01-02T09:53:40+00:00" |             "time": "2022-04-18T21:45:37+00:00" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "symfony/service-contracts", |             "name": "symfony/service-contracts", | ||||||
| @@ -4773,16 +4712,16 @@ | |||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "symfony/string", |             "name": "symfony/string", | ||||||
|             "version": "v6.0.3", |             "version": "v6.0.8", | ||||||
|             "source": { |             "source": { | ||||||
|                 "type": "git", |                 "type": "git", | ||||||
|                 "url": "https://github.com/symfony/string.git", |                 "url": "https://github.com/symfony/string.git", | ||||||
|                 "reference": "522144f0c4c004c80d56fa47e40e17028e2eefc2" |                 "reference": "ac0aa5c2282e0de624c175b68d13f2c8f2e2649d" | ||||||
|             }, |             }, | ||||||
|             "dist": { |             "dist": { | ||||||
|                 "type": "zip", |                 "type": "zip", | ||||||
|                 "url": "https://api.github.com/repos/symfony/string/zipball/522144f0c4c004c80d56fa47e40e17028e2eefc2", |                 "url": "https://api.github.com/repos/symfony/string/zipball/ac0aa5c2282e0de624c175b68d13f2c8f2e2649d", | ||||||
|                 "reference": "522144f0c4c004c80d56fa47e40e17028e2eefc2", |                 "reference": "ac0aa5c2282e0de624c175b68d13f2c8f2e2649d", | ||||||
|                 "shasum": "" |                 "shasum": "" | ||||||
|             }, |             }, | ||||||
|             "require": { |             "require": { | ||||||
| @@ -4838,7 +4777,7 @@ | |||||||
|                 "utf8" |                 "utf8" | ||||||
|             ], |             ], | ||||||
|             "support": { |             "support": { | ||||||
|                 "source": "https://github.com/symfony/string/tree/v6.0.3" |                 "source": "https://github.com/symfony/string/tree/v6.0.8" | ||||||
|             }, |             }, | ||||||
|             "funding": [ |             "funding": [ | ||||||
|                 { |                 { | ||||||
| @@ -4854,20 +4793,20 @@ | |||||||
|                     "type": "tidelift" |                     "type": "tidelift" | ||||||
|                 } |                 } | ||||||
|             ], |             ], | ||||||
|             "time": "2022-01-02T09:55:41+00:00" |             "time": "2022-04-22T08:18:02+00:00" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "symfony/translation", |             "name": "symfony/translation", | ||||||
|             "version": "v6.0.7", |             "version": "v6.0.8", | ||||||
|             "source": { |             "source": { | ||||||
|                 "type": "git", |                 "type": "git", | ||||||
|                 "url": "https://github.com/symfony/translation.git", |                 "url": "https://github.com/symfony/translation.git", | ||||||
|                 "reference": "b2792b39d74cf41ea3065f27fd2ddf0b556ac7a1" |                 "reference": "3d38cf8f8834148c4457681d539bc204de701501" | ||||||
|             }, |             }, | ||||||
|             "dist": { |             "dist": { | ||||||
|                 "type": "zip", |                 "type": "zip", | ||||||
|                 "url": "https://api.github.com/repos/symfony/translation/zipball/b2792b39d74cf41ea3065f27fd2ddf0b556ac7a1", |                 "url": "https://api.github.com/repos/symfony/translation/zipball/3d38cf8f8834148c4457681d539bc204de701501", | ||||||
|                 "reference": "b2792b39d74cf41ea3065f27fd2ddf0b556ac7a1", |                 "reference": "3d38cf8f8834148c4457681d539bc204de701501", | ||||||
|                 "shasum": "" |                 "shasum": "" | ||||||
|             }, |             }, | ||||||
|             "require": { |             "require": { | ||||||
| @@ -4933,7 +4872,7 @@ | |||||||
|             "description": "Provides tools to internationalize your application", |             "description": "Provides tools to internationalize your application", | ||||||
|             "homepage": "https://symfony.com", |             "homepage": "https://symfony.com", | ||||||
|             "support": { |             "support": { | ||||||
|                 "source": "https://github.com/symfony/translation/tree/v6.0.7" |                 "source": "https://github.com/symfony/translation/tree/v6.0.8" | ||||||
|             }, |             }, | ||||||
|             "funding": [ |             "funding": [ | ||||||
|                 { |                 { | ||||||
| @@ -4949,7 +4888,7 @@ | |||||||
|                     "type": "tidelift" |                     "type": "tidelift" | ||||||
|                 } |                 } | ||||||
|             ], |             ], | ||||||
|             "time": "2022-03-31T17:18:25+00:00" |             "time": "2022-04-22T08:18:02+00:00" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "symfony/translation-contracts", |             "name": "symfony/translation-contracts", | ||||||
| @@ -5031,16 +4970,16 @@ | |||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "symfony/var-dumper", |             "name": "symfony/var-dumper", | ||||||
|             "version": "v5.4.6", |             "version": "v5.4.8", | ||||||
|             "source": { |             "source": { | ||||||
|                 "type": "git", |                 "type": "git", | ||||||
|                 "url": "https://github.com/symfony/var-dumper.git", |                 "url": "https://github.com/symfony/var-dumper.git", | ||||||
|                 "reference": "294e9da6e2e0dd404e983daa5aa74253d92c05d0" |                 "reference": "cdcadd343d31ad16fc5e006b0de81ea307435053" | ||||||
|             }, |             }, | ||||||
|             "dist": { |             "dist": { | ||||||
|                 "type": "zip", |                 "type": "zip", | ||||||
|                 "url": "https://api.github.com/repos/symfony/var-dumper/zipball/294e9da6e2e0dd404e983daa5aa74253d92c05d0", |                 "url": "https://api.github.com/repos/symfony/var-dumper/zipball/cdcadd343d31ad16fc5e006b0de81ea307435053", | ||||||
|                 "reference": "294e9da6e2e0dd404e983daa5aa74253d92c05d0", |                 "reference": "cdcadd343d31ad16fc5e006b0de81ea307435053", | ||||||
|                 "shasum": "" |                 "shasum": "" | ||||||
|             }, |             }, | ||||||
|             "require": { |             "require": { | ||||||
| @@ -5100,7 +5039,7 @@ | |||||||
|                 "dump" |                 "dump" | ||||||
|             ], |             ], | ||||||
|             "support": { |             "support": { | ||||||
|                 "source": "https://github.com/symfony/var-dumper/tree/v5.4.6" |                 "source": "https://github.com/symfony/var-dumper/tree/v5.4.8" | ||||||
|             }, |             }, | ||||||
|             "funding": [ |             "funding": [ | ||||||
|                 { |                 { | ||||||
| @@ -5116,7 +5055,7 @@ | |||||||
|                     "type": "tidelift" |                     "type": "tidelift" | ||||||
|                 } |                 } | ||||||
|             ], |             ], | ||||||
|             "time": "2022-03-02T12:42:23+00:00" |             "time": "2022-04-26T13:19:20+00:00" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "tijsverkoyen/css-to-inline-styles", |             "name": "tijsverkoyen/css-to-inline-styles", | ||||||
| @@ -7934,16 +7873,16 @@ | |||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "symfony/debug", |             "name": "symfony/debug", | ||||||
|             "version": "v4.4.37", |             "version": "v4.4.41", | ||||||
|             "source": { |             "source": { | ||||||
|                 "type": "git", |                 "type": "git", | ||||||
|                 "url": "https://github.com/symfony/debug.git", |                 "url": "https://github.com/symfony/debug.git", | ||||||
|                 "reference": "5de6c6e7f52b364840e53851c126be4d71e60470" |                 "reference": "6637e62480b60817b9a6984154a533e8e64c6bd5" | ||||||
|             }, |             }, | ||||||
|             "dist": { |             "dist": { | ||||||
|                 "type": "zip", |                 "type": "zip", | ||||||
|                 "url": "https://api.github.com/repos/symfony/debug/zipball/5de6c6e7f52b364840e53851c126be4d71e60470", |                 "url": "https://api.github.com/repos/symfony/debug/zipball/6637e62480b60817b9a6984154a533e8e64c6bd5", | ||||||
|                 "reference": "5de6c6e7f52b364840e53851c126be4d71e60470", |                 "reference": "6637e62480b60817b9a6984154a533e8e64c6bd5", | ||||||
|                 "shasum": "" |                 "shasum": "" | ||||||
|             }, |             }, | ||||||
|             "require": { |             "require": { | ||||||
| @@ -7982,7 +7921,7 @@ | |||||||
|             "description": "Provides tools to ease debugging PHP code", |             "description": "Provides tools to ease debugging PHP code", | ||||||
|             "homepage": "https://symfony.com", |             "homepage": "https://symfony.com", | ||||||
|             "support": { |             "support": { | ||||||
|                 "source": "https://github.com/symfony/debug/tree/v4.4.37" |                 "source": "https://github.com/symfony/debug/tree/v4.4.41" | ||||||
|             }, |             }, | ||||||
|             "funding": [ |             "funding": [ | ||||||
|                 { |                 { | ||||||
| @@ -7998,7 +7937,7 @@ | |||||||
|                     "type": "tidelift" |                     "type": "tidelift" | ||||||
|                 } |                 } | ||||||
|             ], |             ], | ||||||
|             "time": "2022-01-02T09:41:36+00:00" |             "time": "2022-04-12T15:19:55+00:00" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|             "name": "theseer/tokenizer", |             "name": "theseer/tokenizer", | ||||||
| @@ -8060,5 +7999,5 @@ | |||||||
|         "php": "^8.0" |         "php": "^8.0" | ||||||
|     }, |     }, | ||||||
|     "platform-dev": [], |     "platform-dev": [], | ||||||
|     "plugin-api-version": "2.2.0" |     "plugin-api-version": "2.3.0" | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,17 +0,0 @@ | |||||||
| <?php |  | ||||||
|  |  | ||||||
| declare(strict_types=1); |  | ||||||
|  |  | ||||||
| return [ |  | ||||||
|     'stateful' => explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf( |  | ||||||
|         '%s%s', |  | ||||||
|         'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1', |  | ||||||
|         env('APP_URL') ? ','.parse_url(env('APP_URL'), PHP_URL_HOST) : '' |  | ||||||
|     ))), |  | ||||||
|     'guard' => ['web'], |  | ||||||
|     'expiration' => null, |  | ||||||
|     'middleware' => [ |  | ||||||
|         'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class, |  | ||||||
|         'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class, |  | ||||||
|     ], |  | ||||||
| ]; |  | ||||||
| @@ -10,6 +10,6 @@ class UserSeeder extends Seeder | |||||||
| { | { | ||||||
|     public function run(): void |     public function run(): void | ||||||
|     { |     { | ||||||
|         User::factory(['email' => 'admin@admin.pl'])->create(); |         User::factory(['email' => 'admin@example.com'])->create(); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -4,21 +4,6 @@ declare(strict_types=1); | |||||||
|  |  | ||||||
| use Illuminate\Support\Facades\Route; | use Illuminate\Support\Facades\Route; | ||||||
|  |  | ||||||
| /* |  | ||||||
| |-------------------------------------------------------------------------- |  | ||||||
| | API Routes |  | ||||||
| |-------------------------------------------------------------------------- |  | ||||||
| | |  | ||||||
| | Here is where you can register API routes for your application. These |  | ||||||
| | routes are loaded by the RouteServiceProvider within a group which |  | ||||||
| | is assigned the "api" middleware group. Enjoy building your API! |  | ||||||
| | |  | ||||||
| */ |  | ||||||
|  |  | ||||||
| // Route::middleware('auth:sanctum')->get('/user', function (Request $request) { |  | ||||||
| //     return $request->user(); |  | ||||||
| // }); |  | ||||||
|  |  | ||||||
| Route::get('ping', function () { | Route::get('ping', function () { | ||||||
|     return ['message' => 'pong']; |     return ['message' => 'pong']; | ||||||
| }); | }); | ||||||
|   | |||||||
| @@ -1,18 +0,0 @@ | |||||||
| <?php |  | ||||||
|  |  | ||||||
| use Illuminate\Support\Facades\Broadcast; |  | ||||||
|  |  | ||||||
| /* |  | ||||||
| |-------------------------------------------------------------------------- |  | ||||||
| | Broadcast Channels |  | ||||||
| |-------------------------------------------------------------------------- |  | ||||||
| | |  | ||||||
| | Here you may register all of the event broadcasting channels that your |  | ||||||
| | application supports. The given channel authorization callbacks are |  | ||||||
| | used to check if an authenticated user can listen to the channel. |  | ||||||
| | |  | ||||||
| */ |  | ||||||
|  |  | ||||||
| Broadcast::channel('App.Models.User.{id}', function ($user, $id) { |  | ||||||
|     return (int) $user->id === (int) $id; |  | ||||||
| }); |  | ||||||
| @@ -1,19 +1,10 @@ | |||||||
| <?php | <?php | ||||||
|  |  | ||||||
|  | declare(strict_types=1); | ||||||
|  |  | ||||||
| use Illuminate\Foundation\Inspiring; | use Illuminate\Foundation\Inspiring; | ||||||
| use Illuminate\Support\Facades\Artisan; | use Illuminate\Support\Facades\Artisan; | ||||||
|  |  | ||||||
| /* |  | ||||||
| |-------------------------------------------------------------------------- |  | ||||||
| | Console Routes |  | ||||||
| |-------------------------------------------------------------------------- |  | ||||||
| | |  | ||||||
| | This file is where you may define all of your Closure based console |  | ||||||
| | commands. Each Closure is bound to a command instance allowing a |  | ||||||
| | simple approach to interacting with each command's IO methods. |  | ||||||
| | |  | ||||||
| */ |  | ||||||
|  |  | ||||||
| Artisan::command('inspire', function () { | Artisan::command('inspire', function () { | ||||||
|     $this->comment(Inspiring::quote()); |     $this->comment(Inspiring::quote()); | ||||||
| })->purpose('Display an inspiring quote'); | })->purpose('Display an inspiring quote'); | ||||||
|   | |||||||
| @@ -1,17 +1,8 @@ | |||||||
| <?php | <?php | ||||||
|  |  | ||||||
| use Illuminate\Support\Facades\Route; | declare(strict_types=1); | ||||||
|  |  | ||||||
| /* | use Illuminate\Support\Facades\Route; | ||||||
| |-------------------------------------------------------------------------- |  | ||||||
| | Web Routes |  | ||||||
| |-------------------------------------------------------------------------- |  | ||||||
| | |  | ||||||
| | Here is where you can register web routes for your application. These |  | ||||||
| | routes are loaded by the RouteServiceProvider within a group which |  | ||||||
| | contains the "web" middleware group. Now create something great! |  | ||||||
| | |  | ||||||
| */ |  | ||||||
|  |  | ||||||
| Route::name('admin.')->group(function () { | Route::name('admin.')->group(function () { | ||||||
|     Route::namespace('Dashboard')->middleware('auth')->group(function () { |     Route::namespace('Dashboard')->middleware('auth')->group(function () { | ||||||
| @@ -50,6 +41,7 @@ Route::name('admin.')->group(function () { | |||||||
|                 ->name('destroy'); |                 ->name('destroy'); | ||||||
|         }); |         }); | ||||||
|     }); |     }); | ||||||
|  |  | ||||||
|     Route::name('auth.')->namespace('Auth')->group(function () { |     Route::name('auth.')->namespace('Auth')->group(function () { | ||||||
|         Route::get('login', 'LoginController@login') |         Route::get('login', 'LoginController@login') | ||||||
|             ->name('login'); |             ->name('login'); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user