Support the ongoing development of →
posted 8 years ago
Last updated 2 years ago.

@kjones1876, you should know difference between Laravel Container and global class..

This line resolvers '\App\Plivo' instance in laravel app(the container).


And also this line just creates new object from class if it is defined..

 $value = new \App\Plivo; // This throws a not found error
Last updated 8 years ago.

@muratodunc I have apparently greatly miss understood how im meant to using containers. Thanks.


Sign in to participate in this thread!


Your banner here too?

kjones1876 kjones1876 Joined 19 Nov 2014


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

Your logo here?

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

© 2024 - All rights reserved.