I have a problem with Laravel 5.3 on Apache server hosted on CentOS, VPS.
When I try to call Artisan::call('migrate'), I'm get in die dump 0 and application not fire migrate. I was try that on vagrant and wamp in local and everything work fine and artisan command fires.
What I have to check on server, what package or module?
I was found the solution using external api route. I was do that on server and I can't run that command from main
Related
Work on a laravel site with real-time notifications using the laravel-websocket library from:
https://beyondco.de/docs/laravel-websockets/getting-started/introduction
On the local server I have to run the following command for it to work:
php artisan websockets:serve
Starting the WebSocket server on port 6001...
Now I have uploaded the website to cloudways hosting
How can I implement the command to always run the server?
php artisan websockets:serve
If you are using VPS, I think you should install a supervisor to help out running your WebSocket. Here example that I found click
I tried laravel dusk on Laravel Framework 5.5.38 by following this https://laravel.com/docs/5.5/dusk
My environment is on windows WSL running Ubuntu 16.04
I tried this
composer require --dev laravel/dusk:"^2.0"
php artisan dusk:install
php artisan dusk
and I got this on the last one
Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session with params: {"desiredCapabilities":{"browserName":"chrome","platform":"ANY","chromeOptions":{"binary":"","args":["--disable-gpu","--headless"]}}}
Failed to connect to localhost port 9515: Connection refused
my url on local is http://crateclub.test
Does anyone encounter similar to this?
I ran into the same error while attempting to run php-webdriver with Windows WSL running Ubuntu inside of a VS Code terminal.
My fix was to switch my execution environment to PowerShell (in external Windows Terminal) and everything started working. You may need to re-install some tools such as PHP CLI and Composer, but this worked for me.
I have a fresh installed laravel app and when i run php artisan serve it shows me the server information but when i go to that server it gives a cant be reach error. I am not running Vagrant just MAMP but it used to work before. I did tried to install Vagrant in the past and it didn't work that is why i came back to MAMP only. I read something about generating a key with php artisan key:generate which didn't work. Any help is appreciated.
This is the command I am using and the result
$ php artisan serve
Laravel development server started: <http://127.0.0.1:8000>
try to uninstall the antivirus if you have one ,in my case i uninstall avast ,reboot OS and it works for me .
I am using windows 10 and wamp server and I am fresh installing laravel and all i get is this error message and is it necessary to do php artisan serve everytime i open laravel ? as long as i close cmd prompt localhost:8000 refused to connect .
Php artisan serve error
I think you are running a Laravel project blog by command php artisan serve and you are browsing your application by localhost:8000 or 127.0.0.1:8000
Your screenshot saying that when you are trying to visit a url which is not defined in your routes/web.php then, you are getting invalid request (Unexpected EOF) error in your cmd.
And of course! in this case when you close cmd then your Laravel app will not run.
So now, if you don't want to run your Laravel app by the following command each time, then you can use Laragon in windows environment.
Either you have to run php aritsan serve or set up a virtual host in your OS. Here is how to set up a virtual host in Ubuntu 16.04: How To Set Up Apache Virtual Hosts on Ubuntu 16.04
This is case, you can keep your cmd open. And open another cmd, redirect to file path where you are working and it should work fine.
I know this might sound really silly, but I'm kinda stuck and need help. I'm trying to use Laravel 5.3 and use Homestead as my IDE. I have previously worked on PHP using NetBeans and XAMPP, but the installation has always been a pain. I have no formal training and have learnt and used basic PHP on my own for my webpages.
I'm running a Windows 8-32Bit OS & here's what I've done so far:
I have downloaded Laravel using Composer.
I have installed Virtual Box & Vagrant.
I have installed Git Bash and ran vagrant box add laravel/homestead (Homestead.yaml was not found in my Homestead folder after running bash init.sh command. I downloaded it from Github and added there).
Set SSH Key.
Ran vagrant up in Homestead folder (the installation was complete).
Issues:
If I just type http://localhost:8000 in my browser, nothing happens. I have to run php artisan serve in the command prompt inside laravel directory and keep the prompt window open for the default Laravel 5 page to open.
If I type http://127.0.0.1:8000 in my browser, nothing happens at all.
So how do I use Homestead then for my development everyday ?
you can try
localhost/project-name/public
if you dont want to run php artisan serve