-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Bug report
What I did
set setup_email_verification_routes to true in config/backpack/base.php
./vendor/bin/sail artisan route:list gives an error:
Undefined array key "signed"
What I expected to happen
route list output
What happened
./vendor/bin/sail artisan route:list
ErrorException
Undefined array key "signed"
at vendor/backpack/crud/src/app/Http/Controllers/Auth/VerifyEmailController.php:23
19▕ * @return void
20▕ */
21▕ public function __construct()
22▕ {
➜ 23▕ if (! app('router')->getMiddleware()['signed'] ?? null) {
24▕ throw new Exception('Missing "signed" alias middleware in App/Http/Kernel.php. More info: https://backpackforlaravel.com/docs/6.x/base-how-to#enable-email-verification-in-backpack-routes');
25▕ }
26▕
27▕ $this->middleware('signed')->only('verifyEmail');
+1 vendor frames
2 [internal]:0
Backpack\CRUD\app\Http\Controllers\Auth\VerifyEmailController::__construct()
+12 vendor frames
15 [internal]:0
Illuminate\Foundation\Console\RouteListCommand::Illuminate\Foundation\Console{closure}()
What I've already tried to fix it
comment the 'if'-statement on line 23 in vendor/backpack/crud/src/app/Http/Controllers/Auth/VerifyEmailController.php
and everything works (including the e-mail verification)
Is it a bug in the latest version of Backpack?
After I run composer update backpack/crud the bug... is it still there?
yes
Backpack, Laravel, PHP, DB version
When I run php artisan backpack:version the output is:
PHP VERSION:
8.3.25
PHP EXTENSIONS:
Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, bcmath, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, igbinary, imagick, imap, intl, ldap, exif, mongodb, msgpack, mysqli, pcov, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, readline, shmop, SimpleXML, soap, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, memcached, redis, swoole, Zend OPcache, xdebug
LARAVEL VERSION:
12.28.1.0
BACKPACK PACKAGE VERSIONS:
backpack/basset: 1.3.9
backpack/crud: 6.8.6
backpack/generators: v4.0.7
backpack/pro: 2.2.36
backpack/theme-coreuiv4: 1.1.6