Please I have a text appearing on top of my page before my layout files independent of the one I choose. When I view page source in chrome, it shows like this
0 <!DOCTYPE html>
<html lang="en">.....
I am unable to find where this 0 comes from, i must have accidentally typed it when browsing through laravel files somehow.
If I just type xyz at the beginning of my layout file i get this:
0 xyz
<!DOCTYPE html>
So the previous 0 is being rendered before the layout file.
I need it gone….
I have tried changing Layout files but it still persists above the layout files.
I have gone through my layouts and components and cannot find where this is coming from.
I have used file search but, looking through 0 in all files doesn’t seem possible.
If I could understand how laravel render its pages, I could find what comes before the layout file and I could try to find a solution from there. its giving me big concerns.
New project
was trying to change the layout files when this happened
LIVEWIRE COMPONENT
<?php
namespace AppLivewire;
use LivewireAttributesLayout;
use LivewireAttributesTitle;
use LivewireComponent;
#[Layout('layouts.guest')]
#[Title('GMH - Home')]
class HomePage extends Component
{
public function render()
{
return view('livewire.home-page');
}
}
PAGE INSPECT
0 xyz
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">....
GUEST BLADE LAYOUT
xyz
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">.....
Laravel 11
Livewire 3
Life Gate Mission Hospital is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1