From 26615990e5931e1dc35e97618c59d43b9d89c2c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 29 Oct 2021 20:45:20 +0200 Subject: [PATCH] Fix thread command --- app/Console/Commands/WeeklyThread.php | 2 +- .../{weekly-thread-2021-44.md => weekly-thread-2021-42.md} | 6 +++--- ...s-tinker-bash-script-to-supercharge-your-dev-workflow.md | 4 ++-- content/tips/there-are-multiple-ways-to-redirect-users.md | 4 ++-- ...ecific-feature-in-full-before-starting-implementation.md | 4 ++-- ...eptions-to-terminate-execution-on-any-received-errors.md | 6 +++--- 6 files changed, 13 insertions(+), 13 deletions(-) rename content/threads/{weekly-thread-2021-44.md => weekly-thread-2021-42.md} (50%) diff --git a/app/Console/Commands/WeeklyThread.php b/app/Console/Commands/WeeklyThread.php index 3c1fdb2..f02b7c2 100644 --- a/app/Console/Commands/WeeklyThread.php +++ b/app/Console/Commands/WeeklyThread.php @@ -17,7 +17,7 @@ class WeeklyThread extends Command public function handle() { // 41 - $week = $this->argument('week') ?? now()->week; + $week = $this->argument('week') ?? date('W'); // https://twitter.com/archtechx/status/1448992205138444334?s=20 $url = $this->argument('url'); diff --git a/content/threads/weekly-thread-2021-44.md b/content/threads/weekly-thread-2021-42.md similarity index 50% rename from content/threads/weekly-thread-2021-44.md rename to content/threads/weekly-thread-2021-42.md index 8d69f3a..4b7a44e 100644 --- a/content/threads/weekly-thread-2021-44.md +++ b/content/threads/weekly-thread-2021-42.md @@ -1,9 +1,9 @@ --- -slug: weekly-thread-2021-44 -title: 'Weekly thread #44 of 2021' +slug: weekly-thread-2021-42 +title: 'Weekly thread #42 of 2021' tweet_id: '1451526348132978689' author_username: archtechx created_at: 2021-10-24T11:19:00+00:00 links: { } --- -🔥 This week’s code tips for Laravel developers \ No newline at end of file +🔥 This week’s code tips for Laravel developers diff --git a/content/tips/create-this-tinker-bash-script-to-supercharge-your-dev-workflow.md b/content/tips/create-this-tinker-bash-script-to-supercharge-your-dev-workflow.md index b6fac3a..44fb23c 100644 --- a/content/tips/create-this-tinker-bash-script-to-supercharge-your-dev-workflow.md +++ b/content/tips/create-this-tinker-bash-script-to-supercharge-your-dev-workflow.md @@ -1,11 +1,11 @@ --- title: 'Create this `tinker` bash script to supercharge your dev workflow' tweet_id: '1451526385982447647' -thread_slug: weekly-thread-2021-44 +thread_slug: weekly-thread-2021-42 author_username: Philo01 images: - 'https://pbs.twimg.com/media/FB1A012WYAILmTL.jpg' created_at: 2021-10-22T12:30:33+00:00 slug: create-this-tinker-bash-script-to-supercharge-your-dev-workflow --- -Laravel productivity tip! Add this little function to your bash profile to quickly execute anything with the Tinker command and get the results instantly. \ No newline at end of file +Laravel productivity tip! Add this little function to your bash profile to quickly execute anything with the Tinker command and get the results instantly. diff --git a/content/tips/there-are-multiple-ways-to-redirect-users.md b/content/tips/there-are-multiple-ways-to-redirect-users.md index efa34c2..2682200 100644 --- a/content/tips/there-are-multiple-ways-to-redirect-users.md +++ b/content/tips/there-are-multiple-ways-to-redirect-users.md @@ -1,11 +1,11 @@ --- title: 'There are multiple ways to redirect users' tweet_id: '1451526393389621249' -thread_slug: weekly-thread-2021-44 +thread_slug: weekly-thread-2021-42 author_username: anwar_nairi images: - 'https://pbs.twimg.com/media/FCIjxoBWUAAOHfz.jpg' created_at: 2021-10-22T12:30:34+00:00 slug: there-are-multiple-ways-to-redirect-users --- -#Laravel offers various ways to redirect your users ✈️ \ No newline at end of file +#Laravel offers various ways to redirect your users ✈️ diff --git a/content/tips/use-test-files-to-describe-your-thoughts-about-a-specific-feature-in-full-before-starting-implementation.md b/content/tips/use-test-files-to-describe-your-thoughts-about-a-specific-feature-in-full-before-starting-implementation.md index 672c518..8a7d4a7 100644 --- a/content/tips/use-test-files-to-describe-your-thoughts-about-a-specific-feature-in-full-before-starting-implementation.md +++ b/content/tips/use-test-files-to-describe-your-thoughts-about-a-specific-feature-in-full-before-starting-implementation.md @@ -1,7 +1,7 @@ --- title: 'Use test files to describe your thoughts about a specific feature — in full — before starting implementation' tweet_id: '1451526388717133857' -thread_slug: weekly-thread-2021-44 +thread_slug: weekly-thread-2021-42 author_username: laracasts images: - 'https://pbs.twimg.com/media/FCJX2LhXsAQZdJF.jpg' @@ -10,4 +10,4 @@ slug: use-test-files-to-describe-your-thoughts-about-a-specific-feature-in-full- --- Testing Tip: use a test class or spec file as a place to gather all of your thoughts about how a particular feature should behave. Then, write each as a pending test. -Here's an example from our upcoming "Feed" section. \ No newline at end of file +Here's an example from our upcoming "Feed" section. diff --git a/content/tips/you-can-make-the-http-client-throw-exceptions-to-terminate-execution-on-any-received-errors.md b/content/tips/you-can-make-the-http-client-throw-exceptions-to-terminate-execution-on-any-received-errors.md index c36b35b..8f6d5d6 100644 --- a/content/tips/you-can-make-the-http-client-throw-exceptions-to-terminate-execution-on-any-received-errors.md +++ b/content/tips/you-can-make-the-http-client-throw-exceptions-to-terminate-execution-on-any-received-errors.md @@ -1,17 +1,17 @@ --- title: 'You can make the Http client throw exceptions to terminate execution on any received errors' tweet_id: '1451526356521693187' -thread_slug: weekly-thread-2021-44 +thread_slug: weekly-thread-2021-42 author_username: pascalbaljet images: - 'https://pbs.twimg.com/media/FCKQ8JdWUAc0I4q.jpg' created_at: 2021-10-22T12:30:26+00:00 slug: you-can-make-the-http-client-throw-exceptions-to-terminate-execution-on-any-received-errors --- -💡 By default, the @laravelphp HTTP client doesn't throw exceptions on client and server errors. +💡 By default, the @laravelphp HTTP client doesn't throw exceptions on client and server errors. However, you can make it do that by using the 'throw' method, and this method is chainable 🔥 Documentation: https://laravel.com/docs/8.x/http-client#throwing-exceptions -#Laravel #PHP #webdev #webdevelopment \ No newline at end of file +#Laravel #PHP #webdev #webdevelopment