What is after "php Artisan serves" in Laravel?

Asked

Viewed 124 times

0

I am in doubt of exactly what happened. I found this error in the system I am developing. When I start my server in Laravel appears a supposed "=" after using the php artisan serve. This same "=" always appears in the upper left corner on any page made on views. The following example shows what appears.

=Laravel development server started: <http://127.0.0.1:8000>

Expected to appear the following result:

Laravel development server started: <http://127.0.0.1:8000>

I tried to look for something in view main. I found nothing unusual. I believe it is something involving the command php Artisan serves. I would like to know exactly how this command works and in which files of my application Laravel i may be consulting to try to find this error. Or if this error has no relation to the command itself.

Note: I believe that apache2 is involved too, but I do not know the provenance of that.

  • 1

    This is looking like a character you typed wrong in some file and didn’t notice. If you use Git see what’s changed in your edit history.

  • 2

    Search your Views you typed this has nothing to do with the artisan, in short, the problem is local and apparent difficult to reproduce

  • 1

    Start a project from scratch and see if this happens as well. I’ve had one similar problem which was related to coding a file in UFT-8 with BOM (probably not your case)

  • 2

    It should not be related to apache pq Artisan serves uses the built-in php server (see the file Servecommand.php)

  • Leave Artisan Serv aside. Use apache which is faster and more efficient. Point rootdir to /public/ and be happy.

  • I managed to tidy up, searched for =<? php and was in the main system view.

  • @Risk did not know of this possibility, thanks for the tip. But I did not understand if it proceeds using Laravel

  • You have the APACHE ?

Show 3 more comments

1 answer

3


It is very likely that you have typed the character '=' in some file that is included throughout the life cycle of the framework and that this character is before a tag <?php.

Search the project files for a string like =<?php.

  • worked right, thanks for the help. It was a minimal situation, I looked for this string and it ended up working. Thank you very much

Browser other questions tagged

You are not signed in. Login or sign up in order to post.