1

How I create and run laravel spark project:

  1. Create project using spark new myproject
  2. set all required directory permissions
  3. Since I am on live server I hit the public folder within the project.
  4. The page display with two buttons 'Login' and 'Register'
  5. When these buttons are clicked it jumps to the root directory, nothing works

  6. Even if i hit the url like 'http://myip/myproject/register' the registration does not work.

What I am missing. please guide. I can't create virtual host. enter image description here

Shahid Karimi
  • 4,096
  • 17
  • 62
  • 104

1 Answers1

1

You're using wrong web server configuration. You web server is pointed to a root directory where Laravel project lives.

You need to point it to a public directory which is inside Laravel project and restart web server.

After that use normal URLs without public in it.

Update

Correct nginx and Apache settings for Laravel 5

Community
  • 1
  • 1
Alexey Mezenin
  • 158,981
  • 26
  • 290
  • 279