From 9185bc58059db9e44bf1bd2c1c1a702981bf24a8 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Sun, 24 Oct 2021 13:25:04 +0200 Subject: [PATCH] Add weekly tips thread --- content/authors/Philo01.md | 5 +++++ content/authors/anwar_nairi.md | 5 +++++ content/authors/laracasts.md | 5 +++++ content/authors/pascalbaljet.md | 5 +++++ content/threads/weekly-thread-2021-44.md | 9 +++++++++ ...h-script-to-supercharge-your-dev-workflow.md | 11 +++++++++++ ...there-are-multiple-ways-to-redirect-users.md | 11 +++++++++++ ...re-in-full-before-starting-implementation.md | 13 +++++++++++++ ...erminate-execution-on-any-received-errors.md | 17 +++++++++++++++++ package-lock.json | 8 -------- 10 files changed, 81 insertions(+), 8 deletions(-) create mode 100644 content/authors/Philo01.md create mode 100644 content/authors/anwar_nairi.md create mode 100644 content/authors/laracasts.md create mode 100644 content/authors/pascalbaljet.md create mode 100644 content/threads/weekly-thread-2021-44.md create mode 100644 content/tips/create-this-tinker-bash-script-to-supercharge-your-dev-workflow.md create mode 100644 content/tips/there-are-multiple-ways-to-redirect-users.md create mode 100644 content/tips/use-test-files-to-describe-your-thoughts-about-a-specific-feature-in-full-before-starting-implementation.md create mode 100644 content/tips/you-can-make-the-http-client-throw-exceptions-to-terminate-execution-on-any-received-errors.md diff --git a/content/authors/Philo01.md b/content/authors/Philo01.md new file mode 100644 index 0000000..b8f274b --- /dev/null +++ b/content/authors/Philo01.md @@ -0,0 +1,5 @@ +--- +username: Philo01 +name: 'Philo Hermans' +avatar: 'https://pbs.twimg.com/profile_images/1448987517471035394/vEJljnOY_normal.jpg' +--- diff --git a/content/authors/anwar_nairi.md b/content/authors/anwar_nairi.md new file mode 100644 index 0000000..fde48c2 --- /dev/null +++ b/content/authors/anwar_nairi.md @@ -0,0 +1,5 @@ +--- +username: anwar_nairi +name: Anwar +avatar: 'https://pbs.twimg.com/profile_images/1253970848907776000/-gMh35LG_normal.jpg' +--- diff --git a/content/authors/laracasts.md b/content/authors/laracasts.md new file mode 100644 index 0000000..724f5e0 --- /dev/null +++ b/content/authors/laracasts.md @@ -0,0 +1,5 @@ +--- +username: laracasts +name: Laracasts +avatar: 'https://pbs.twimg.com/profile_images/1445387653763977228/ZY_bh6BZ_normal.jpg' +--- diff --git a/content/authors/pascalbaljet.md b/content/authors/pascalbaljet.md new file mode 100644 index 0000000..d13cb18 --- /dev/null +++ b/content/authors/pascalbaljet.md @@ -0,0 +1,5 @@ +--- +username: pascalbaljet +name: 'Pascal Baljet 🚀' +avatar: 'https://pbs.twimg.com/profile_images/1166590157925076993/aNpvJqRy_normal.jpg' +--- diff --git a/content/threads/weekly-thread-2021-44.md b/content/threads/weekly-thread-2021-44.md new file mode 100644 index 0000000..8d69f3a --- /dev/null +++ b/content/threads/weekly-thread-2021-44.md @@ -0,0 +1,9 @@ +--- +slug: weekly-thread-2021-44 +title: 'Weekly thread #44 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 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 new file mode 100644 index 0000000..b6fac3a --- /dev/null +++ b/content/tips/create-this-tinker-bash-script-to-supercharge-your-dev-workflow.md @@ -0,0 +1,11 @@ +--- +title: 'Create this `tinker` bash script to supercharge your dev workflow' +tweet_id: '1451526385982447647' +thread_slug: weekly-thread-2021-44 +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 diff --git a/content/tips/there-are-multiple-ways-to-redirect-users.md b/content/tips/there-are-multiple-ways-to-redirect-users.md new file mode 100644 index 0000000..efa34c2 --- /dev/null +++ b/content/tips/there-are-multiple-ways-to-redirect-users.md @@ -0,0 +1,11 @@ +--- +title: 'There are multiple ways to redirect users' +tweet_id: '1451526393389621249' +thread_slug: weekly-thread-2021-44 +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 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 new file mode 100644 index 0000000..672c518 --- /dev/null +++ b/content/tips/use-test-files-to-describe-your-thoughts-about-a-specific-feature-in-full-before-starting-implementation.md @@ -0,0 +1,13 @@ +--- +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 +author_username: laracasts +images: + - 'https://pbs.twimg.com/media/FCJX2LhXsAQZdJF.jpg' +created_at: 2021-10-22T12:30:33+00:00 +slug: use-test-files-to-describe-your-thoughts-about-a-specific-feature-in-full-before-starting-implementation +--- +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 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 new file mode 100644 index 0000000..c36b35b --- /dev/null +++ b/content/tips/you-can-make-the-http-client-throw-exceptions-to-terminate-execution-on-any-received-errors.md @@ -0,0 +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 +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. + +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 diff --git a/package-lock.json b/package-lock.json index ab4eab9..30d4789 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1620,7 +1620,6 @@ "anymatch": "^2.0.0", "async-each": "^1.0.1", "braces": "^2.3.2", - "fsevents": "^1.2.7", "glob-parent": "^3.1.0", "inherits": "^2.0.3", "is-binary-path": "^1.0.0", @@ -3500,7 +3499,6 @@ "dependencies": { "anymatch": "~3.1.1", "braces": "~3.0.2", - "fsevents": "~2.3.1", "glob-parent": "~5.1.0", "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", @@ -3599,7 +3597,6 @@ "integrity": "sha512-gnB85c3MGC7Nm9I/FkiasNBOKjOiO1RNuXXarQms37q4QMpWdlbBgD/VnOStA2faG1dpXMv31RFApjX1/QdgWQ==", "dev": true, "dependencies": { - "colors": "^1.1.2", "object-assign": "^4.1.0", "string-width": "^4.2.0" }, @@ -7692,9 +7689,6 @@ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-3.0.1.tgz", "integrity": "sha1-pezG9l9T9mLEQVx2daAzHQmS7GY=", "dev": true, - "dependencies": { - "graceful-fs": "^4.1.6" - }, "optionalDependencies": { "graceful-fs": "^4.1.6" } @@ -7833,7 +7827,6 @@ "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", "dev": true, "dependencies": { - "graceful-fs": "^4.1.6", "universalify": "^2.0.0" }, "optionalDependencies": { @@ -15037,7 +15030,6 @@ "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", "dev": true, "dependencies": { - "graceful-fs": "^4.1.6", "universalify": "^2.0.0" }, "optionalDependencies": {