mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-11 21:14:02 +00:00
496 B
496 B
| title | tweet_id | thread_slug | author_username | images | created_at | slug | |
|---|---|---|---|---|---|---|---|
| Create custom Blade directives for business logic | 1272826448810737670 | laravel-clean-code-tactics | samuelstancl |
|
2021-04-06T16:07:35+00:00 | create-custom-blade-directives-for-business-logic |
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.