Skip to content

Laravel 5.4 flushSectionsIfDoneRendering #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
BirdyUK opened this issue Feb 18, 2017 · 0 comments
Closed

Laravel 5.4 flushSectionsIfDoneRendering #28

BirdyUK opened this issue Feb 18, 2017 · 0 comments

Comments

@BirdyUK
Copy link

BirdyUK commented Feb 18, 2017

Anyone else had this issue?

FatalThrowableError in Facade.php line 221: Call to undefined method Illuminate\View\Factory::flushSectionsIfDoneRendering()

Here is my method:

public function viewTemplateById($id)
{
$template = $this->repository->findTemplate($id);
if($this->request->ajax()){
return DbView::make($template)->with(['foo' => 'Bar'])->render();
}else{
return view('backend.sms.template', compact('template'));
}
}

and $template is just returning a few columns one being content that has the following stored:
Hi {{ $foo }} !

Thats it!! This worked fine on laravel 5.3 just not 5.4, Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants