How do you serve your webpage?
-
After creating the project, you can get to the webpage through the url, but after you restart your computer, it is no longer being served. I tried running php artisan serve, but I get his error:
{"error":{"type":"Symfony\Component\Debug\Exception\FatalErrorException","message":"Uncaught TypeError: Argument 1 passed to Illuminate
\Exception\WhoopsDisplayer::display() must be an instance of Exception, instance of Error given, called in C:\laragon\www\larabook\boot
strap\compiled.php on line 9462 and defined in C:\laragon\www\larabook\bootstrap\compiled.php:9352\nStack trace:\n#0 C:\laragon\www
\larabook\bootstrap\compiled.php(9462): Illuminate\Exception\WhoopsDisplayer->display(Object(Error))\n#1 C:\laragon\www\larabook\boo
tstrap\compiled.php(9414): Illuminate\Exception\Handler->displayException(Object(Error))\n#2 C:\laragon\www\larabook\bootstrap\compi
led.php(9418): Illuminate\Exception\Handler->handleException(Object(Error))\n#3 [internal function]: Illuminate\Exception\Handler->handl
eUncaughtException(Object(Error))\n#4 {main}\n thrown","file":"C:\laragon\www\larabook\bootstrap\compiled.php","line":9352}}I am using Laravel 4.2
-
@laragone : You don't need to use php artisan serve.
You can start Apache and use the pretty url: http://app.dev
In case of yours:
http://larabook.dev