I passed the Laravel 5.4 project for hosting, but now I do not know a way to use php artisan migrate to create my tables in the database.
I created a file in the public folder named installation.php with the following code:
<?php
// installation.php file
echo exec('php /var/www/laravel-app/artisan migrate:install');
That way when I accessed this file my tables were automatically migrated. I got the following return:
Warning: exec(): Unable to fork [php /home/MEU_ENDEREÇO/public_html/PROJETO/artisan migrate:install] in /home/MEU_ENDEREÇO/public_html/PROJETO/public/installation.php on line 3
I would like to know the ways that I can perform such a procedure or to resolve this error.
Att. Thank you for your attention.