Search code examples
phplaravellaravel-blade

Why every time I run PHP Artisan Serve it appears like the dashboard that I gor this from where?


This is my first time use laravel blade and composer, i am so confuse after i run php artisan serve When I enter the http://localhost:8000/news that should appear the display of the code I wrote in news.blade.php but when I run it out as shown in this below enter image description here

Anyone can explain me what is this and why this is appear after i run php artisan serve. this is what CMD looks like after running php artisan serve. enter image description here


Solution

  • I found a problem similar to yours I believe it's the same problem

    you can check it out here

    It seems there's a problem with your APP_KEY in your .env file

    if you have any backup of your .env file with the APP_KEY revert to that or if that's not the case you can generate a key with the following command

    php artisan key:generate
    

    hope it solves the problem