'`php artisan serve` starting wrong

When I am starting my local Laravel project with php artisan serve it is always beginning with "Controller" word and in the corner of every page in my project starts with this same word. I couldn't find where is my mistake.

My command:

My Cmd command



Solution 1:[1]

you have a Controller word in your Source Code which shouldnt be.

maybe its in html or blade (not php) or maybe you were echo Controller somewhere to trace something and you have forgotten to remove that.

you can use Find in Project feature of an IDE to find The Word and remove it out.

Solution 2:[2]

I recently went through the same situation, in my case php artisan serve always started with the number 1:

enter image description here

Mission impossible to search for 1 using CTRL + F in the folder. So I quickly looked through all my config files and found the number 1 before an opening php tag:

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Abilogos
Solution 2 viniciussvl