Support the ongoing development of Laravel.io →
Packages Architecture
Last updated 2 years ago.
0

Do something like this:

http://stackoverflow.com/questions/3724112/php-method-chaining

With your underlying ChainClass (that the facade references).

Here's the link to the laravel source for ->with():

https://github.com/laravel/framework/blob/master/src/Illuminate/View/View.php#L164

As you can see, it's the same technique as the first link. Chainable methods return $this.

Here's the original ->make(), on the factory class:

https://github.com/laravel/framework/blob/master/src/Illuminate/View/Factory.php#L113

It returns a new View instance.

Last updated 2 years ago.
0

Thanks,

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

yuomtheara yuomtheara Joined 12 Feb 2014

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.