Laravel का authorization system नियंत्रित करता है कि एक authenticated उपयोगकर्ता को क्या करने की अनुमति है (authentication से अलग — वे कौन हैं)। Gates permissions के लिए सरल closures हैं; Policies ऐसी classes हैं जो किसी विशिष्ट model के इर्द-गिर्द authorization logic को व्यवस्थित करती हैं (जैसे कौन Post को update कर सकता है)।
Gates — सरल, closure-based permissions
::(, fn() => ->());
(::()) { ... }
::();
