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:
parent
3fe86bed08
commit
9185bc5805
10 changed files with 81 additions and 8 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue