1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00

Weekly thread #6 (before #5)

This commit is contained in:
lukinovec 2022-02-17 17:15:09 +01:00
parent c9fdb7c5cd
commit eebf38f267
8 changed files with 18 additions and 18 deletions

View file

@ -1,6 +1,6 @@
--- ---
slug: weekly-thread-2022-07 slug: weekly-thread-2022-06
title: 'Weekly thread #07 of 2022' title: 'Weekly thread #06 of 2022'
tweet_id: '1494019542648901632' tweet_id: '1494019542648901632'
author_username: archtechx author_username: archtechx
created_at: 2022-02-17T10:14:38+00:00 created_at: 2022-02-17T10:14:38+00:00
@ -10,4 +10,4 @@ links: { }
A weekly thread 🧵 A weekly thread 🧵
https://twitter.com/archtechx/status/1493663801715081221 https://twitter.com/archtechx/status/1493663801715081221

View file

@ -1,11 +1,11 @@
--- ---
title: 'In Laravel 9, you can use str() instead of Str::of()' title: 'In Laravel 9, you can use str() instead of Str::of()'
tweet_id: '1494019557249335296' tweet_id: '1494019557249335296'
thread_slug: weekly-thread-2022-07 thread_slug: weekly-thread-2022-06
author_username: jasonlbeggs author_username: jasonlbeggs
images: images:
- 'https://pbs.twimg.com/media/FLKjhn4XMAIZqNI.png' - 'https://pbs.twimg.com/media/FLKjhn4XMAIZqNI.png'
created_at: 2022-02-16T18:43:14+00:00 created_at: 2022-02-16T18:43:14+00:00
slug: in-laravel-9-you-can-use-str-instead-of-strof slug: in-laravel-9-you-can-use-str-instead-of-strof
--- ---
The `str` helper in @laravelphp v9 is 🔥 The `str` helper in @laravelphp v9 is 🔥

View file

@ -1,7 +1,7 @@
--- ---
title: 'Laravel 9 can automatically bind route parameters to enums' title: 'Laravel 9 can automatically bind route parameters to enums'
tweet_id: '1494019551310139392' tweet_id: '1494019551310139392'
thread_slug: weekly-thread-2022-07 thread_slug: weekly-thread-2022-06
author_username: mmartin_joo author_username: mmartin_joo
images: images:
- 'https://pbs.twimg.com/media/FLJ8Gt_XsAM98uy.jpg' - 'https://pbs.twimg.com/media/FLJ8Gt_XsAM98uy.jpg'
@ -10,4 +10,4 @@ slug: laravel-9-can-automatically-bind-route-parameters-to-enums
--- ---
🔥Laravel 9 introduced enum route bindings! 🔥Laravel 9 introduced enum route bindings!
You can type-hint your enum and Laravel will cast the string value from the URL: You can type-hint your enum and Laravel will cast the string value from the URL:

View file

@ -1,7 +1,7 @@
--- ---
title: 'Name contracts as descriptors and implementations as orders' title: 'Name contracts as descriptors and implementations as orders'
tweet_id: '1494019563490402305' tweet_id: '1494019563490402305'
thread_slug: weekly-thread-2022-07 thread_slug: weekly-thread-2022-06
author_username: MikeVILT author_username: MikeVILT
images: images:
- 'https://pbs.twimg.com/media/FLKZjZbXMAQ18WD.jpg' - 'https://pbs.twimg.com/media/FLKZjZbXMAQ18WD.jpg'
@ -12,4 +12,4 @@ A great tip from Luke @LukeDowning19,
"Name contracts as descriptions and implementations as orders" "Name contracts as descriptions and implementations as orders"
#laracon #laracon

View file

@ -1,16 +1,16 @@
--- ---
title: 'Specify container bindings using the $bindings array' title: 'Specify container bindings using the $bindings array'
tweet_id: '1494019548374126594' tweet_id: '1494019548374126594'
thread_slug: weekly-thread-2022-07 thread_slug: weekly-thread-2022-06
author_username: freekmurze author_username: freekmurze
images: images:
- 'https://pbs.twimg.com/media/FLKZmOCWYAAq9Hd.jpg' - 'https://pbs.twimg.com/media/FLKZmOCWYAAq9Hd.jpg'
created_at: 2022-02-16T18:43:12+00:00 created_at: 2022-02-16T18:43:12+00:00
slug: specify-container-bindings-using-the-bindings-array slug: specify-container-bindings-using-the-bindings-array
--- ---
🔥 Cool tidbit I learned during @LukeDowning19 s talk. 🔥 Cool tidbit I learned during @LukeDowning19 s talk.
You can add a `$bindings` array to a service provider to bind things. You can add a `$bindings` array to a service provider to bind things.
https://laravel.com/docs/9.x/providers#the-bindings-and-singletons-properties https://laravel.com/docs/9.x/providers#the-bindings-and-singletons-properties
#laravel #php #laravel #php

View file

@ -1,7 +1,7 @@
--- ---
title: 'Use the policy() helper to resolve a policy for a model' title: 'Use the policy() helper to resolve a policy for a model'
tweet_id: '1494019545446567939' tweet_id: '1494019545446567939'
thread_slug: weekly-thread-2022-07 thread_slug: weekly-thread-2022-06
author_username: asantibanez author_username: asantibanez
images: images:
- 'https://pbs.twimg.com/media/FLNAs-bXIAExJxr.jpg' - 'https://pbs.twimg.com/media/FLNAs-bXIAExJxr.jpg'
@ -10,4 +10,4 @@ slug: 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. TIL about @laravelphp policy() helper. Give it a model and it will resolve the policy for you.
Very useful when testing policies behavior. 💪 Very useful when testing policies behavior. 💪

View file

@ -1,7 +1,7 @@
--- ---
title: 'You can skip() TransformRequests-type middleware' title: 'You can skip() TransformRequests-type middleware'
tweet_id: '1494019554304880641' tweet_id: '1494019554304880641'
thread_slug: weekly-thread-2022-07 thread_slug: weekly-thread-2022-06
author_username: pascalbaljet author_username: pascalbaljet
images: images:
- 'https://pbs.twimg.com/media/FKwygqPWQAMRaTr.jpg' - 'https://pbs.twimg.com/media/FKwygqPWQAMRaTr.jpg'
@ -12,4 +12,4 @@ slug: you-can-skip-transformrequests-type-middleware
For example, you can use it on 'TrimStrings' and 'ConvertEmptyStringsToNull'. For example, you can use it on 'TrimStrings' and 'ConvertEmptyStringsToNull'.
#Laravel #PHP #webdev #Laravel #PHP #webdev

View file

@ -1,7 +1,7 @@
--- ---
title: 'You can use the @checked Blade directive to generate checked="" markup' title: 'You can use the @checked Blade directive to generate checked="" markup'
tweet_id: '1494019560223096837' tweet_id: '1494019560223096837'
thread_slug: weekly-thread-2022-07 thread_slug: weekly-thread-2022-06
author_username: AshAllenDesign author_username: AshAllenDesign
images: images:
- 'https://pbs.twimg.com/media/FKwA95pWUAInwgf.jpg' - 'https://pbs.twimg.com/media/FKwA95pWUAInwgf.jpg'
@ -12,4 +12,4 @@ slug: you-can-use-the-at-checked-blade-directive-to-generate-checked-markup
This is going to be a nice addition that we can use to clean up our Blade views a little bit This is going to be a nice addition that we can use to clean up our Blade views a little bit
#laravel #php #laravel #php