I solved it!!!! I was writing return view('projects.index'); inside the model and not inside the controller!!! now everything works!
Now, one thing that is not clear to me, from now one should I use the command php -S localhost:8000 -t public/ instead of php artisan serve?
Because in every app that I build I have the same problem with php artisan serve.
@DIEGOAURINO - I did what you guys suggested:
c:\xampp\htdocs\laravel\proyecto>php -S localhost:8000 -t public/ PHP 7.2.12 Development Server started at Sat May 11 16:59:42 2019 Listening on http://localhost:8000 Document root is C:\xampp\htdocs\laravel\proyecto\public Press Ctrl-C to quit.
Then I go to http://localhost:8000, it shows me the laravel page, great!!!
Now, as I said, I was following the laravel from scratch series and in episode 8, we should create controllers and also crear a folder inside views, I did that and when I try to go to http://localhost:8000/projects it shows an error:
BadMethodCallException Method App\Http\Controllers\ProjectsController::index does not exist.
Any suggestions? thanx again!!!
I don't see any status code, this is what I get: https://ibb.co/CPxMmSY
@TRAY2 - It does not stops loading, and does not show anything, I am on Windows and already change permissions
Hi, this is my first discussion, and I need your help, I'm following the laravel 5.7 from scratch series, and everything was working fine until one day I tried to run php artisan serve command and when I tried to load http://127.0.0.1:8000 it stays loading the page and never shows the page. Can anyone help me please? I really want to finish the series. Thank you!!!