Skip to content

Glossary: Laravel

Closure

Also written: closures, anonymous function

A function written in place and passed around, such as the code in Route::get('/hello', function () {...}). It can't see outside variables unless you list them with use (...).

Where the book teaches it

Related terms

Route