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

Add weekly tips thread

This commit is contained in:
lukinovec 2021-10-24 13:25:04 +02:00
parent 3fe86bed08
commit 9185bc5805
10 changed files with 81 additions and 8 deletions

View file

@ -0,0 +1,5 @@
---
username: Philo01
name: 'Philo Hermans'
avatar: 'https://pbs.twimg.com/profile_images/1448987517471035394/vEJljnOY_normal.jpg'
---

View file

@ -0,0 +1,5 @@
---
username: anwar_nairi
name: Anwar
avatar: 'https://pbs.twimg.com/profile_images/1253970848907776000/-gMh35LG_normal.jpg'
---

View file

@ -0,0 +1,5 @@
---
username: laracasts
name: Laracasts
avatar: 'https://pbs.twimg.com/profile_images/1445387653763977228/ZY_bh6BZ_normal.jpg'
---

View file

@ -0,0 +1,5 @@
---
username: pascalbaljet
name: 'Pascal Baljet 🚀'
avatar: 'https://pbs.twimg.com/profile_images/1166590157925076993/aNpvJqRy_normal.jpg'
---

View file

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

View file

@ -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.

View file

@ -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 ✈️

View file

@ -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.

View file

@ -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

8
package-lock.json generated
View file

@ -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": {