Create custom Blade directives for business logic
- ·
- Telegram
- ·
- Newsletter
You can make your Blade templates more expressive by creating custom directives. For example, rather than checking if the user has the admin role, you could use @admin.