diff --git a/app/Http/Livewire/Tables/LecturerTable.php b/app/Http/Livewire/Tables/LecturerTable.php
index c8d8a097..bbfcff2e 100644
--- a/app/Http/Livewire/Tables/LecturerTable.php
+++ b/app/Http/Livewire/Tables/LecturerTable.php
@@ -85,6 +85,7 @@ class LecturerTable extends DataTableComponent
return Lecturer::query()
->withCount([
'courses',
+ 'coursesEvents',
'libraryItems' => fn($query) => $query->where('news', false)
]);
}
diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.php
index d4ef6447..16360b66 100644
--- a/app/Http/Middleware/Authenticate.php
+++ b/app/Http/Middleware/Authenticate.php
@@ -12,6 +12,6 @@ class Authenticate extends Middleware
*/
protected function redirectTo(Request $request): ?string
{
- return $request->expectsJson() ? null : route('login');
+ return $request->expectsJson() ? null : route('auth.ln');
}
}
diff --git a/composer.json b/composer.json
index 37b991c3..961a0b54 100644
--- a/composer.json
+++ b/composer.json
@@ -121,7 +121,8 @@
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
- "pestphp/pest-plugin": true
+ "pestphp/pest-plugin": true,
+ "php-http/discovery": true
}
},
"minimum-stability": "dev",
diff --git a/composer.lock b/composer.lock
index 3e23f7a0..e40a4220 100644
--- a/composer.lock
+++ b/composer.lock
@@ -6287,38 +6287,44 @@
},
{
"name": "php-http/discovery",
- "version": "1.14.3",
+ "version": "1.15.2",
"source": {
"type": "git",
"url": "https://github.com/php-http/discovery.git",
- "reference": "31d8ee46d0215108df16a8527c7438e96a4d7735"
+ "reference": "5cc428320191ac1d0b6520034c2dc0698628ced5"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/php-http/discovery/zipball/31d8ee46d0215108df16a8527c7438e96a4d7735",
- "reference": "31d8ee46d0215108df16a8527c7438e96a4d7735",
+ "url": "https://api.github.com/repos/php-http/discovery/zipball/5cc428320191ac1d0b6520034c2dc0698628ced5",
+ "reference": "5cc428320191ac1d0b6520034c2dc0698628ced5",
"shasum": ""
},
"require": {
+ "composer-plugin-api": "^1.0|^2.0",
"php": "^7.1 || ^8.0"
},
"conflict": {
"nyholm/psr7": "<1.0"
},
+ "provide": {
+ "php-http/async-client-implementation": "*",
+ "php-http/client-implementation": "*",
+ "psr/http-client-implementation": "*",
+ "psr/http-factory-implementation": "*",
+ "psr/http-message-implementation": "*"
+ },
"require-dev": {
+ "composer/composer": "^1.0.2|^2.0",
"graham-campbell/phpspec-skip-example-extension": "^5.0",
"php-http/httplug": "^1.0 || ^2.0",
"php-http/message-factory": "^1.0",
- "phpspec/phpspec": "^5.1 || ^6.1"
+ "phpspec/phpspec": "^5.1 || ^6.1 || ^7.3",
+ "symfony/phpunit-bridge": "^6.2"
},
- "suggest": {
- "php-http/message": "Allow to use Guzzle, Diactoros or Slim Framework factories"
- },
- "type": "library",
+ "type": "composer-plugin",
"extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
+ "class": "Http\\Discovery\\Composer\\Plugin",
+ "plugin-optional": true
},
"autoload": {
"psr-4": {
@@ -6335,7 +6341,7 @@
"email": "mark.sagikazar@gmail.com"
}
],
- "description": "Finds installed HTTPlug implementations and PSR-7 message factories",
+ "description": "Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations",
"homepage": "http://php-http.org",
"keywords": [
"adapter",
@@ -6344,13 +6350,14 @@
"factory",
"http",
"message",
+ "psr17",
"psr7"
],
"support": {
"issues": "https://github.com/php-http/discovery/issues",
- "source": "https://github.com/php-http/discovery/tree/1.14.3"
+ "source": "https://github.com/php-http/discovery/tree/1.15.2"
},
- "time": "2022-07-11T14:04:40+00:00"
+ "time": "2023-02-11T08:28:41+00:00"
},
{
"name": "php-http/httplug",
@@ -7330,16 +7337,16 @@
},
{
"name": "psy/psysh",
- "version": "v0.11.13",
+ "version": "v0.11.14",
"source": {
"type": "git",
"url": "https://github.com/bobthecow/psysh.git",
- "reference": "722317c9f5627e588788e340f29b923e58f92f54"
+ "reference": "8c2e264def7a8263a68ef6f0b55ce90b77d41e17"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/bobthecow/psysh/zipball/722317c9f5627e588788e340f29b923e58f92f54",
- "reference": "722317c9f5627e588788e340f29b923e58f92f54",
+ "url": "https://api.github.com/repos/bobthecow/psysh/zipball/8c2e264def7a8263a68ef6f0b55ce90b77d41e17",
+ "reference": "8c2e264def7a8263a68ef6f0b55ce90b77d41e17",
"shasum": ""
},
"require": {
@@ -7400,9 +7407,9 @@
],
"support": {
"issues": "https://github.com/bobthecow/psysh/issues",
- "source": "https://github.com/bobthecow/psysh/tree/v0.11.13"
+ "source": "https://github.com/bobthecow/psysh/tree/v0.11.14"
},
- "time": "2023-03-21T14:22:44+00:00"
+ "time": "2023-03-28T03:41:01+00:00"
},
{
"name": "pusher/pusher-php-server",
@@ -7902,12 +7909,12 @@
"source": {
"type": "git",
"url": "https://github.com/ramsey/uuid.git",
- "reference": "bf2bee216a4379eaf62162307d62bb7850405fec"
+ "reference": "8e955307d32dc9b6992440ff81321d3cb09db75a"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/ramsey/uuid/zipball/bf2bee216a4379eaf62162307d62bb7850405fec",
- "reference": "bf2bee216a4379eaf62162307d62bb7850405fec",
+ "url": "https://api.github.com/repos/ramsey/uuid/zipball/8e955307d32dc9b6992440ff81321d3cb09db75a",
+ "reference": "8e955307d32dc9b6992440ff81321d3cb09db75a",
"shasum": ""
},
"require": {
@@ -7987,7 +7994,7 @@
"type": "tidelift"
}
],
- "time": "2023-02-07T16:14:23+00:00"
+ "time": "2023-03-27T22:05:11+00:00"
},
{
"name": "rap2hpoutre/fast-excel",
@@ -8189,32 +8196,31 @@
},
{
"name": "sentry/sentry",
- "version": "3.16.0",
+ "version": "3.17.0",
"source": {
"type": "git",
"url": "https://github.com/getsentry/sentry-php.git",
- "reference": "5326a8786b8c7c3a51ea0c6d06e6cb6a9dfa6779"
+ "reference": "95d2e932383cf684f77acff0d2a5aef5ad2f1933"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/5326a8786b8c7c3a51ea0c6d06e6cb6a9dfa6779",
- "reference": "5326a8786b8c7c3a51ea0c6d06e6cb6a9dfa6779",
+ "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/95d2e932383cf684f77acff0d2a5aef5ad2f1933",
+ "reference": "95d2e932383cf684f77acff0d2a5aef5ad2f1933",
"shasum": ""
},
"require": {
"ext-json": "*",
"ext-mbstring": "*",
"guzzlehttp/promises": "^1.4",
- "guzzlehttp/psr7": "^1.8.4|^2.1.1",
"jean85/pretty-package-versions": "^1.5|^2.0.4",
"php": "^7.2|^8.0",
"php-http/async-client-implementation": "^1.0",
"php-http/client-common": "^1.5|^2.0",
- "php-http/discovery": "^1.11, <1.15",
+ "php-http/discovery": "^1.15",
"php-http/httplug": "^1.1|^2.0",
"php-http/message": "^1.5",
"psr/http-factory": "^1.0",
- "psr/http-message-implementation": "^1.0",
+ "psr/http-factory-implementation": "^1.0",
"psr/log": "^1.0|^2.0|^3.0",
"symfony/options-resolver": "^3.4.43|^4.4.30|^5.0.11|^6.0",
"symfony/polyfill-php80": "^1.17"
@@ -8225,6 +8231,7 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.19|3.4.*",
+ "guzzlehttp/psr7": "^1.8.4|^2.1.1",
"http-interop/http-factory-guzzle": "^1.0",
"monolog/monolog": "^1.6|^2.0|^3.0",
"nikic/php-parser": "^4.10.3",
@@ -8277,7 +8284,7 @@
],
"support": {
"issues": "https://github.com/getsentry/sentry-php/issues",
- "source": "https://github.com/getsentry/sentry-php/tree/3.16.0"
+ "source": "https://github.com/getsentry/sentry-php/tree/3.17.0"
},
"funding": [
{
@@ -8289,7 +8296,7 @@
"type": "custom"
}
],
- "time": "2023-03-16T10:37:16+00:00"
+ "time": "2023-03-26T21:54:06+00:00"
},
{
"name": "sentry/sentry-laravel",
@@ -16159,16 +16166,16 @@
},
{
"name": "phpunit/phpunit",
- "version": "9.6.5",
+ "version": "9.6.6",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "86e761949019ae83f49240b2f2123fb5ab3b2fc5"
+ "reference": "b65d59a059d3004a040c16a82e07bbdf6cfdd115"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/86e761949019ae83f49240b2f2123fb5ab3b2fc5",
- "reference": "86e761949019ae83f49240b2f2123fb5ab3b2fc5",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b65d59a059d3004a040c16a82e07bbdf6cfdd115",
+ "reference": "b65d59a059d3004a040c16a82e07bbdf6cfdd115",
"shasum": ""
},
"require": {
@@ -16241,7 +16248,8 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
- "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.5"
+ "security": "https://github.com/sebastianbergmann/phpunit/security/policy",
+ "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.6"
},
"funding": [
{
@@ -16257,7 +16265,7 @@
"type": "tidelift"
}
],
- "time": "2023-03-09T06:34:10+00:00"
+ "time": "2023-03-27T11:43:46+00:00"
},
{
"name": "sebastian/cli-parser",
diff --git a/resources/views/columns/lectures/action.blade.php b/resources/views/columns/lectures/action.blade.php
index d57d5e60..554f2cc6 100644
--- a/resources/views/columns/lectures/action.blade.php
+++ b/resources/views/columns/lectures/action.blade.php
@@ -4,7 +4,7 @@