mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
* Weekly thread #5 * Weekly thread #6 (before #5) * Weekly thread #5 * Correct the weekly thread created_at timestamps * Add actual created_at to Thread * Weekly thread #7 * Fix weekly thread #7 * Remove thread #8
476 B
476 B
| title | tweet_id | thread_slug | author_username | images | created_at | slug | |
|---|---|---|---|---|---|---|---|
| Use the policy() helper to resolve a policy for a model | 1494019545446567939 | weekly-thread-2022-06 | asantibanez |
|
2022-02-16T18:43:11+00:00 | use-the-policy-helper-to-resolve-a-policy-for-a-model |
TIL about @laravelphp policy() helper. Give it a model and it will resolve the policy for you.
Very useful when testing policies behavior. 💪