mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
Add weekly tips thread
This commit is contained in:
parent
3fe86bed08
commit
9185bc5805
10 changed files with 81 additions and 8 deletions
5
content/authors/Philo01.md
Normal file
5
content/authors/Philo01.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
username: Philo01
|
||||||
|
name: 'Philo Hermans'
|
||||||
|
avatar: 'https://pbs.twimg.com/profile_images/1448987517471035394/vEJljnOY_normal.jpg'
|
||||||
|
---
|
||||||
5
content/authors/anwar_nairi.md
Normal file
5
content/authors/anwar_nairi.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
username: anwar_nairi
|
||||||
|
name: Anwar
|
||||||
|
avatar: 'https://pbs.twimg.com/profile_images/1253970848907776000/-gMh35LG_normal.jpg'
|
||||||
|
---
|
||||||
5
content/authors/laracasts.md
Normal file
5
content/authors/laracasts.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
username: laracasts
|
||||||
|
name: Laracasts
|
||||||
|
avatar: 'https://pbs.twimg.com/profile_images/1445387653763977228/ZY_bh6BZ_normal.jpg'
|
||||||
|
---
|
||||||
5
content/authors/pascalbaljet.md
Normal file
5
content/authors/pascalbaljet.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
username: pascalbaljet
|
||||||
|
name: 'Pascal Baljet 🚀'
|
||||||
|
avatar: 'https://pbs.twimg.com/profile_images/1166590157925076993/aNpvJqRy_normal.jpg'
|
||||||
|
---
|
||||||
9
content/threads/weekly-thread-2021-44.md
Normal file
9
content/threads/weekly-thread-2021-44.md
Normal 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 week’s code tips for Laravel developers
|
||||||
|
|
@ -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.
|
||||||
11
content/tips/there-are-multiple-ways-to-redirect-users.md
Normal file
11
content/tips/there-are-multiple-ways-to-redirect-users.md
Normal 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 ✈️
|
||||||
|
|
@ -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.
|
||||||
|
|
@ -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
8
package-lock.json
generated
|
|
@ -1620,7 +1620,6 @@
|
||||||
"anymatch": "^2.0.0",
|
"anymatch": "^2.0.0",
|
||||||
"async-each": "^1.0.1",
|
"async-each": "^1.0.1",
|
||||||
"braces": "^2.3.2",
|
"braces": "^2.3.2",
|
||||||
"fsevents": "^1.2.7",
|
|
||||||
"glob-parent": "^3.1.0",
|
"glob-parent": "^3.1.0",
|
||||||
"inherits": "^2.0.3",
|
"inherits": "^2.0.3",
|
||||||
"is-binary-path": "^1.0.0",
|
"is-binary-path": "^1.0.0",
|
||||||
|
|
@ -3500,7 +3499,6 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"anymatch": "~3.1.1",
|
"anymatch": "~3.1.1",
|
||||||
"braces": "~3.0.2",
|
"braces": "~3.0.2",
|
||||||
"fsevents": "~2.3.1",
|
|
||||||
"glob-parent": "~5.1.0",
|
"glob-parent": "~5.1.0",
|
||||||
"is-binary-path": "~2.1.0",
|
"is-binary-path": "~2.1.0",
|
||||||
"is-glob": "~4.0.1",
|
"is-glob": "~4.0.1",
|
||||||
|
|
@ -3599,7 +3597,6 @@
|
||||||
"integrity": "sha512-gnB85c3MGC7Nm9I/FkiasNBOKjOiO1RNuXXarQms37q4QMpWdlbBgD/VnOStA2faG1dpXMv31RFApjX1/QdgWQ==",
|
"integrity": "sha512-gnB85c3MGC7Nm9I/FkiasNBOKjOiO1RNuXXarQms37q4QMpWdlbBgD/VnOStA2faG1dpXMv31RFApjX1/QdgWQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"colors": "^1.1.2",
|
|
||||||
"object-assign": "^4.1.0",
|
"object-assign": "^4.1.0",
|
||||||
"string-width": "^4.2.0"
|
"string-width": "^4.2.0"
|
||||||
},
|
},
|
||||||
|
|
@ -7692,9 +7689,6 @@
|
||||||
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-3.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-3.0.1.tgz",
|
||||||
"integrity": "sha1-pezG9l9T9mLEQVx2daAzHQmS7GY=",
|
"integrity": "sha1-pezG9l9T9mLEQVx2daAzHQmS7GY=",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
|
||||||
"graceful-fs": "^4.1.6"
|
|
||||||
},
|
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"graceful-fs": "^4.1.6"
|
"graceful-fs": "^4.1.6"
|
||||||
}
|
}
|
||||||
|
|
@ -7833,7 +7827,6 @@
|
||||||
"integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
|
"integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"graceful-fs": "^4.1.6",
|
|
||||||
"universalify": "^2.0.0"
|
"universalify": "^2.0.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
|
|
@ -15037,7 +15030,6 @@
|
||||||
"integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
|
"integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"graceful-fs": "^4.1.6",
|
|
||||||
"universalify": "^2.0.0"
|
"universalify": "^2.0.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue