problems using Laravel Frameworks

Asked

Viewed 61 times

0

I’m following a video lesson to understand how the vue, but this video lesson is on top of a project PHP, I know little about PHP. I did as the video below;

1 - CRUD en LARAVEL & Vuejs - Webpack, Laravel Mix, NPM, Axios | Rimorsoft Online

But when I send the application to the server by typing the command npm run dev I can’t find the URL to view the page;

I’ve tried these options:

  • localhost/Laravel-Vue-crud/public/
  • localhost/Laravel-Vue-crud/
  • localhost:8080

Could someone take a look at the video because I might be typing the wrong URL.

1 answer

0

From what I checked, the problem that is occurring is about which URL to access when climbing the server, correct? If so, check if you have the .env created at the root of your application.

Basically, the .env is a configuration file for all Laravel environment variables. Note that if you are using Linux, all files that start with "." are hidden. Another information is that this file nay is versioned, so it can be copied from the file .env.example which is generally monitored in repositories in general.

You can check on the line APP_URL, or change it to the door you want, example: APP_URL=http://localhost:8080/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.