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

Fix thread command

This commit is contained in:
Samuel Štancl 2021-10-29 20:45:20 +02:00
parent 8b4da709a8
commit 26615990e5
6 changed files with 13 additions and 13 deletions

View file

@ -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');

View file

@ -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 weeks code tips for Laravel developers
🔥 This weeks code tips for Laravel developers

View file

@ -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.
Laravel productivity tip! Add this little function to your bash profile to quickly execute anything with the Tinker command and get the results instantly.

View file

@ -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 ✈️
#Laravel offers various ways to redirect your users ✈️

View file

@ -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.
Here's an example from our upcoming "Feed" section.

View file

@ -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
#Laravel #PHP #webdev #webdevelopment