For reasons I don't understand, Laravel seems to be commenting out the doctype tag at the top of my view file:
<!--?php<!DOCTYPE html-->
<html lang="en">
This is causing the browser to incorrectly render the page.
The view file looks like so:
<!DOCTYPE html>
<html lang="{{ App::getLocale() }}">
There is no whitespace above the doctype.
I have confirmed the problem in Safari and Chrome.
Anyone have any ideas?
Fixed the problem, for anyone interested.
I had a blank api.php file and it caused problems. Adding a comment fixed it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.