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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community