How do you serve your webpage?

  • | 805 points

    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

  • administrators
    | 44080 points

    @laragone : You don't need to use php artisan serve.
    You can start Apache and use the pretty url:
    In case of yours:

Log in to reply

Looks like your connection to Laragon was lost, please wait while we try to reconnect.