Closed geradtroje-env closed 3 months ago
We were able to figure out the issue. We solved it by adding a new disk ('basset') and pointed it to where things were being placed and then it started working. I appreciate your time.
'basset' => [ 'driver' => 'local', 'root' => public_path('build'), 'url' => env('APP_URL').'/build', 'visibility' => 'public', 'throw' => false, ],
Bug report
What I did
We've installed the laravel backpack package, setup the auth.json file and ran the backpack:install command. Everything works great on our local environment. But when we try to deploy everything to Heroku the admin has no styling or anything that is normally served using basset.
What I expected to happen
We expect that when everything works locally, when we deploy to Heroku everything should still work.
What happened
The /admin page shows but has no styling. We can see that the files were added to the storage folder and the symlink is in place but when we try to access any of the files we get "Forbidden".
What I've already tried to fix it
We tried using s3 instead of local public/storage, and while it did move all the files to our s3 bucket, it broke everything else (the main app - not admin dashboard).
Is it a bug in the latest version of Backpack?
After I run
composer update backpack/crud
the bug is still present.Backpack, Laravel, PHP, DB version
When I run
php artisan backpack:version
the output is: PHP Deprecated: Optional parameter $id declared before required parameter $formLogic is implicitly treated as a required parameter in /app/vendor/backpack/crud/src/app/Http/Controllers/Operations/Concerns/HasForm.php on line 104PHP VERSION:
8.3.10
PHP EXTENSIONS:
Core, date, libxml, openssl, pcre, zlib, bz2, ctype, curl, dom, fileinfo, filter, hash, iconv, json, SPL, session, standard, mysqlnd, PDO, pdo_mysql, pdo_pgsql, pgsql, Phar, posix, random, readline, Reflection, mysqli, SimpleXML, sockets, tokenizer, xml, xmlreader, xmlwriter, zip, gd, mbstring, newrelic, Zend OPcache
LARAVEL VERSION:
11.10.0.0
BACKPACK PACKAGE VERSIONS:
backpack/basset: 1.3.4 backpack/crud: 6.7.30 backpack/permissionmanager: 7.2.1 backpack/pro: 2.2.4 backpack/theme-tabler: 1.2.10
Can you please help us get this deployed properly?