Images are not displayed
- Make sure you run the command
php artisan storage:link
, - Ensure that the default disk is set to
public
, notlocal
, - Check that
APP_URL
in the.env
file is set correctly.
APP_URL=https://moonshine.test:8080
Problems with HTTPS
If you have forms that use URLs with http but expect https:
- Make sure you have a valid SSL certificate,
- In the
TrustProxies
middleware, setprotected $proxies = ['*']
.
Error "Page not found"
- Check for the presence of
MoonShineServiceProvider
inbootstrap/providers.php
or inconfig/app.php
. For example, the Apiato package changes its structure, and MoonShine cannot be added as a provider automatically. Add it manually, - Ensure that the resource or page is declared in
MoonShineServiceProvider
, - Clear the cache.