From d5718fbbc8eac349a4ac3fb8636e3688593eccbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sun, 10 Jul 2022 21:21:46 +0200 Subject: [PATCH] Week 27/2022 --- content/authors/ryangjchandler.md | 2 +- content/threads/weekly-thread-2022-27.md | 19 +++++++++++++++++++ ...anually-type-casting-request-parameters.md | 11 +++++++++++ ...validate-json-columns-at-database-level.md | 15 +++++++++++++++ 4 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 content/threads/weekly-thread-2022-27.md create mode 100644 content/tips/you-can-use-the-boolean-date-string-methods-on-the-request-object-instead-of-manually-type-casting-request-parameters.md create mode 100644 content/tips/you-can-validate-json-columns-at-database-level.md diff --git a/content/authors/ryangjchandler.md b/content/authors/ryangjchandler.md index ab78723..0726ef1 100644 --- a/content/authors/ryangjchandler.md +++ b/content/authors/ryangjchandler.md @@ -1,5 +1,5 @@ --- username: ryangjchandler -avatar: 'https://pbs.twimg.com/profile_images/1512466908746235904/6jQdQZim_normal.png' +avatar: 'https://pbs.twimg.com/profile_images/1546042999183917058/i2AEMBGr_normal.png' name: 'Ryan Chandler' --- diff --git a/content/threads/weekly-thread-2022-27.md b/content/threads/weekly-thread-2022-27.md new file mode 100644 index 0000000..eedfad1 --- /dev/null +++ b/content/threads/weekly-thread-2022-27.md @@ -0,0 +1,19 @@ +--- +slug: weekly-thread-2022-27 +title: 'Weekly thread #27 of 2022' +tweet_id: '1545465995606650880' +author_username: archtechx +created_at: 2022-07-08T17:53:01+00:00 +links: { } +--- +This week's news and code tips for Laravel developers include: + +⚡ Fast ⚡️ Paginate +☀️ Laracon Summer 2022 +🆕 Laracasts CreatorSeries +✅ The State of Laravel Survey +🌟 Laravel SingleStoreDB driver v1 + +and more... + +Thread #128 \ No newline at end of file diff --git a/content/tips/you-can-use-the-boolean-date-string-methods-on-the-request-object-instead-of-manually-type-casting-request-parameters.md b/content/tips/you-can-use-the-boolean-date-string-methods-on-the-request-object-instead-of-manually-type-casting-request-parameters.md new file mode 100644 index 0000000..058d1be --- /dev/null +++ b/content/tips/you-can-use-the-boolean-date-string-methods-on-the-request-object-instead-of-manually-type-casting-request-parameters.md @@ -0,0 +1,11 @@ +--- +title: 'You can use the boolean() / date() / string() methods on the Request object instead of manually type-casting request parameters' +tweet_id: '1545466006096687110' +thread_slug: weekly-thread-2022-27 +author_username: ryangjchandler +images: + - 'https://pbs.twimg.com/media/FWhgKQPXwAELDpV.jpg' +created_at: 2022-07-08T17:53:03+00:00 +slug: you-can-use-the-boolean-date-string-methods-on-the-request-object-instead-of-manually-type-casting-request-parameters +--- +⚡️ Instead of explicitly type-casting or wrapping request parameters, you can use some of Laravel's utility methods on the Request object. It comes with a boolean() helper, date() helper and a string() / str() helper! \ No newline at end of file diff --git a/content/tips/you-can-validate-json-columns-at-database-level.md b/content/tips/you-can-validate-json-columns-at-database-level.md new file mode 100644 index 0000000..205e09e --- /dev/null +++ b/content/tips/you-can-validate-json-columns-at-database-level.md @@ -0,0 +1,15 @@ +--- +title: 'You can validate JSON columns at database level' +tweet_id: '1545466000790892544' +thread_slug: weekly-thread-2022-27 +author_username: tobias_petry +images: + - 'https://pbs.twimg.com/media/FW-NXH9X0AE4uSd.jpg' +created_at: 2022-07-08T17:53:02+00:00 +slug: you-can-validate-json-columns-at-database-level +--- +⚡️ Database Tip + +Extending a traditional database schema with NoSQL-like JSON columns can make the schema more understandable. But you should also ensure these JSON documents conform to an expected schema! + +https://sqlfordevs.io/json-schema-validation \ No newline at end of file