Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel - valet 404 not found

I have a laravel project which was working fine in http with php artisan serve. But I was working on a project where I needed to implement Facebook Login API which requires call from https, for doing this I installed valet globally executed following command:

 valet link backend-laravel
 valet secure backend-laravel

Here is the screenshot of valet links valet links

Now when i enter https://backend-laravel.test it shows 404 error.

How can make it running? Is there something I missed?

like image 766
Abhishek Avatar asked Aug 27 '18 12:08

Abhishek


2 Answers

Run following commands from your project directory:

valet park
valet link backend-laravel
like image 109
Jinal Somaiya Avatar answered Sep 24 '22 12:09

Jinal Somaiya


You should run:

valet park

on your main folder (where all the laravel projects are stored) while the folders inside the main folder are the project folders and folder_name_inside_the_main_folder.test opens the project on your browser.

OR

You should run:

valet link

on your project folder and open foldername.test on the browser.

Hope it helps someone!!!

like image 43
Prakash Poudel Avatar answered Sep 24 '22 12:09

Prakash Poudel