I am trying to run a laravel project . But php artisan serve does not showing any output.
But other projects are running fine. Please help.
Related
I have my Laravel project deployed on shared hosting, and I made a command that delete some old images, command is php artisan delete:photos, and on my localhost it is working just fine, but on my shared hosting terminal when I type php artisan delete:photos it is not working.
I don't know why, I tried with php artisan key:generate but it is not working too.
Any solutions for this?
I am using Vue js with Laravel in large application for better user experience. Used API call to communicate Vue js front end with Laravel Backend. It's working fine when I use command prompt to execute the application and the commands are "php artisan serve" and "npm run watch".
As I need this to be executed in Live Server, I have renamed "server.php" to "index.php" then moved ".htaccess" file from public folder to root folder. When I execute this in browser "http://localhost/projectname" it's not working but when I use Laravel without vue js its working fine.
Can anyone please help me in this. Thanks in advance.
I am using laravel for a php webproject.
Yesterday I noticed an issue:
Everytime I make changes f.e. in the controller files I need to rerun php artisan serve, which consumes a lot of time (close CMD, open it again and type php artisan serve)
I am trying to find a way, so this command will automatically rerun when I test my application on localhost.
I could probably write a script or something with Python, which will automatically open CMD and execute php artisan serve whenever I click f.e. CTRL + F5, but that feels very hacky, is there a cleaner solution?
I also found a guide on how to edit the hosts file in system32 folder and the httpd-vhosts.conf in the apache folder, but after doing all steps, if I try to reach my application I get "It works" instead, which is simply an indicator for a successfull apache installation.
You should avoid php artisan serve cause it's just a shortcut to run your Laravel project. For a better development environment, you should use Laravel Homestead which offers a complete solution.
Why i'm getting error while running php artisan preset react in my console. I'm working in my online enrollment system and i wanna use laravel and react. But i got stuck in this problem and i dont know about this error.
I have this very strange problem in laravel. I successfully put my website into maintenance mode via artisan by this command:
php artisan down
But now i have to put my website back into live mode.I tried:
php artisan up
However, the site isn't going live even though i get success message? Have you guys ever faced this issue?
Whats the fix?
I'm on :
1. Macbook pro Mamp
2. Laravel 5.1
Thanks
artisan up command simply deletes storage/framework/down file. Please check if the file exits after you execute the up command. If it still exists, it seems like a file access issue. Whenever you run down/up commands, make sure that you run them as the same user that is running your application.
In order to get the site up and running again, remove the storage/framework/down file manually.