0
votes

I'm running into a weird issue where my page isnt' getting rendered in its entirety. The bottom bit is getting cut off and I'm not sure why.

I'd paste code, but it's a 3000+ line template im trying to implement.

I am doing it as follows in dashboard.master:

@include('dashboard.master.head')
...
@include('dashboard.master.header')
...
@include('dashboard.master.sidebar')
...
@include('dashboard.master.style_customizer')
...
@include('dashboard.master.page_header')
...
@yield('content')
...tons of lines here

It renders up to content correctly, and awhile after that but it seems to stop at some point.

example of my blade file calling my master

@extends('dashboard.master')
@section('content')
    <p>This is my content</p>
@stop

Edit: I tried removing everything and just pasting the HTML template I have. It still just stops rendering towards the end of the page. So all I have now is literally the master file and the includes in my blade template that calls the master.

2
My template is ~4.5K lines of code. Could this be the issue that its simply too long?user2540748
It doesn't sound like it, but are you getting any exceptions?Chris Forrence
Another option that you have is to clear out the {application}/app/storage/views folder, then refresh the one page that has that. Check that folder again, you'll see a view. Cat that out, see if there's anything wrongChris Forrence
There are no errors its simply just not rendering code. Ill take a look at your suggestion ChrisForrenceuser2540748
Almost. There's app/storage/views, and app/views. app/storage/views is a cache of the views accessed by the application (with filenames like "55d8270d0c946ca4eb922298fd1f4b27" or "a3a01557e108f13b1491b1bc546a0ac4". Delete the files in that folder.Chris Forrence

2 Answers

0
votes

Laravel will maintain a cache of views that have been accessed, just so that it doesn't have to compile the blade template for each page load. It should be refreshing a particular view should it change, but it sounds like, for some reason, the cache wasn't being refreshed.

You can clear the view cache in two different ways:

# Method 1
php artisan cache:clear

# Method 2
rm `ls /path/to/application/app/storage/views | grep -v '.gitignore'`

Reference

0
votes

In order to show all page, change your last code to :

@extends('dashboard.master')
@section('content')
    <p>This is my content</p>
@show