Closed thephilluk closed 11 months ago
Thanks for trying out the project!
The main issue that's causing the rest of it seems to be that you don't have the intl
extension installed. That causes composer install to fail, which causes the Vite build to fail because Filament isn't installed.
If you install php8.2-intl
, does the script work?
Might need to update the documentation with all the required extensions involved, didn't think of that as I have a few installed by default. I haven't tested the dev setup outside of macOS as I don't have an Ubuntu desktop device.
Next: The sed commands might need some more tinkering as they're also erroring - it seems there may not be an easy "universal" version of the commands as I initially thought there would be.
I cloned the Repo, changed the Hostname in the Caddyfile and the templates/horizon.conf, and tried running the ./bin/init_dev.sh
The hostname modifications were intended to be run after init_dev.sh
, by the way.
Laravel requires these extensions by default:
cURL
DOM
Fileinfo
Filter
Hash
Mbstring
OpenSSL
PCRE
PDO
Session
Tokenizer
XML
I had a look around for tools to determine required extensions, and I got this longer list (have removed some I definitely don't think are necessary for local dev):
bcmath
ctype
curl
dba
dom
fileinfo
filter
gd
gettext
gmp
iconv
intl
libxml
mbstring
mysqli
openssl
pcntl
PDO
Phar
posix
redis
session
soap
sockets
tokenizer
zlib
Hi,
got it working by installing the php8.2-intl
extension.
got it to display the page now.
however it seems that by default no "admin" role is created.
code@Mailcow:~/vscode/test/toybox$ php artisan app:create-admin-user
┌ What is your name? ──────────────────────────────────────────┐
│ [NAME] │
└──────────────────────────────────────────────────────────────┘
┌ What is your email? ─────────────────────────────────────────┐
│ [EMAIL] │
└──────────────────────────────────────────────────────────────┘
┌ What is your password? ──────────────────────────────────────┐
│ ••••••••••• │
└──────────────────────────────────────────────────────────────┘
Spatie\Permission\Exceptions\RoleDoesNotExist
There is no role named `admin`.
at vendor/spatie/laravel-permission/src/Exceptions/RoleDoesNotExist.php:11
7▕ class RoleDoesNotExist extends InvalidArgumentException
8▕ {
9▕ public static function named(string $roleName)
10▕ {
➜ 11▕ return new static("There is no role named `{$roleName}`.");
12▕ }
13▕
14▕ public static function withId(int $roleId)
15▕ {
+5 vendor frames
6 app/Console/Commands/CreateAdminUser.php:50
App\Models\User::assignRole()
+12 vendor frames
19 artisan:35
Illuminate\Foundation\Console\Kernel::handle()
code@Mailcow:~/vscode/test/toybox$ php artisan migrate
INFO Nothing to migrate.
Interesting. init_dev.sh
does run migrate --seed
, which will call the RoleSeeder
, so not sure why you don't have the role. Or it might be a connection issue of some kind.
I'll have to try it myself on a fresh copy, but for now what you can do is php artisan db:seed --class=RoleSeeder
and then retry php artisan app:create-admin-user
.
That seems to have worked. Thank you so much!
Best of luck, keep me posted how it goes!
According to this and some light testing of the idea on my local and an Ubuntu instance, using sed -i.bak
instead of sed -i '.bak'
should work on both Linux and macOS. 72338ba22721a0cbd82c801002caefac91de853d contains this as a fix, so new installs shouldn't have the same issue.
I've also added some notes on extensions in f8224a52f2c258186e48e1514e3eabc27ed88e1e.
Hi there,
I just found this Repo and it sounds really interesting. However I can't get it to run right now. I cloned the Repo, changed the Hostname in the Caddyfile and the templates/horizon.conf, and tried running the ./bin/init_dev.sh and get the following output:
PHP and Composer Version:
Ubuntu Version:
I think this might be User Error, but I am stuck rn.