Support the ongoing development of Laravel.io →
Configuration Views
Last updated 1 year ago.
0

Allright, I have fixed my issue. This post was my issue.

http://stackoverflow.com/questions/28931640/class-app-http-con...

It appears you can't just call a view. The view class is not in the appropriate namespace.

So I added 'use View;' at the top of my controller, and it works.

Seems like that should work out of the box, but maybe I'm not seeing why its this way yet.

Anyway, problem solved.

0

in Laravel 5 you don't have to use "make" to return a view. that is larval 4. the syntax for 5 is:

return view('people. myview');
Last updated 8 years ago.
0

Ah, so that's what I was missing.

Seems like an even better fix to my problem. Don't have to load more things.

Thanks for the help. that works perfectly.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Nertskull nertskull Joined 3 Apr 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.