Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Katzius's avatar

A request for a lesson about Closure and its usage in Laravel as an example

I think this topic is not covered in any new lectures, I found it being mentioned in "Closure to Controllers" - Laravel 4.

I was wondering if you could perhaps make a lesson about Closure in PHP and use Laravel as an example of how it can be used.

Love your lessons by the way.

Thanks.

0 likes
3 replies
ilovelaravel's avatar

An in depth review of Closures would be nice, I agree. Especially since PHP differs in its implementation of Closures in the traditional sense. Perhaps review PHP Closures in relation to JavaScript Closures, how they are similar, and what is different.

2 likes
Punksolid's avatar

I was looking for an episode too and this post appeared. +1 on how to make a closure and some case uses.

Please or to participate in this conversation.