cp .env.example .env
To install dependencies:
docker run --rm \
-u "$(id -u):$(id -g)" \
-v "$(pwd):/var/www/html" \
-w /var/www/html \
laravelsail/php82-composer:latest \
composer install --ignore-platform-reqs
echo "alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail'" >> ~/.bashrc;
source ~/.bashrc
sail up -d
sail artisan key:generate
sail artisan migrate
sail artisan db:seed --class=ShieldSeeder
sail artisan make:filament-user
Get the user id and run the command sail artisan shield:super-admin --user=<user_id>
sail artisan shield:super-admin --user=1
sail restart
sail npm install
sail npm run build
After logging in, open the browser console and call the /testEvent route. Then, observe in the console that there should be a {ping: true}.