FAQ
Why am I seeing a blank page after visiting the app?
Make sure you have run
php artisan migrate --seed
. Also open the browser's console for more info.
Can I host it in a shared hosting?
If you are unable to runphp artisan migrate --seed
or any artisan command in your shared hosting, you can run the command in the browser. The url is:yourdomain.com/command/
. Migration command would look likeyourdomain.com/command/migrate --seed
.Make sureAPP_ENV
is set to local in .env file.My site url has
/public
. What should I do?Look for .htaccess files in your public_html (or your domain root folder). By default, dotfiles are hidden in your file manager. If you still cannot find the .htaccess file, create a new file from file manager, named .htaccess.
After you open the .htaccess file, add the following code:
<IfModule mod_rewrite.c>RewriteEngine OnRewriteRule ^(.*)$ public/$1 [L]</IfModule>
Click to save your changes. After this, you and your visitors should be able to access your app without
/public
url. Keep in mind that you might have to clear your browser cache.