Aniket Magadum (@magadum_aniket) 's Twitter Profile
Aniket Magadum

@magadum_aniket

๐ŸŒŸ My Mission: Empowering PHP Laravel developers to build exceptional software through valuable insights and knowledge.

๐Ÿ™Œ Support my mission below! ๐Ÿ‘‡

ID: 748853408103223297

linkhttps://buymeacoffee.com/aniketmagadum calendar_today01-07-2016 12:19:00

2,2K Tweet

2,2K Takipรงi

487 Takip Edilen

Aniket Magadum (@magadum_aniket) 's Twitter Profile Photo

Hey Laravel Developers ๐Ÿง‘โ€๐Ÿ’ป Starting with Laravel v12.7.0, a new method called whereAttachedTo() is now available for the belongsToMany relationship in Laravel. As the name suggests, this method allows us to retrieve models that are attached to the given model. Hereโ€™s an example

Hey Laravel Developers ๐Ÿง‘โ€๐Ÿ’ป

Starting with Laravel v12.7.0, a new method called whereAttachedTo() is now available for the belongsToMany relationship in Laravel.

As the name suggests, this method allows us to retrieve models that are attached to the given model.

Hereโ€™s an example
Aniket Magadum (@magadum_aniket) 's Twitter Profile Photo

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป During our daily coding session today, my colleague discovered a cool little configuration rule inside of Laravel Pint. So there is a rule inside of pint called binary_operator_spaces which controls the space before and after the binary operator. By

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป

During our daily coding session today, my colleague discovered a cool little configuration rule inside of Laravel Pint.

So there is a rule inside of pint called binary_operator_spaces which controls the space before and after the binary operator.

By
Aniket Magadum (@magadum_aniket) 's Twitter Profile Photo

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป You must be aware of the sole() method that comes with Laravel's Query Builder. This method ensures that there is only one matching record for the given criteria. If there is more than one record matching the criteria, or no record at all, this method

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป

You must be aware of the sole() method that comes with Laravel's Query Builder.

This method ensures that there is only one matching record for the given criteria.

If there is more than one record matching the criteria, or no record at all, this method
Aniket Magadum (@magadum_aniket) 's Twitter Profile Photo

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป You must be aware of the tap() method, which is available in various Laravel classes. This method, when chained on an instance, passes that instance as an argument to a callback function or an invokable class, and then returns the same instance.

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป

You must be aware of the tap() method, which is available in various Laravel classes.

This method, when chained on an instance, passes that instance as an argument to a callback function or an invokable class, and then returns the same instance.
Aniket Magadum (@magadum_aniket) 's Twitter Profile Photo

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป Today, Iโ€™m introducing you to one of the packages from Spatie called "crypto". This package, as the name suggests, allows us to encrypt and decrypt messages easily using asymmetric encryption. It includes several methods for generating a

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป

Today, Iโ€™m introducing you to one of the packages from Spatie called "crypto".

This package, as the name suggests, allows us to encrypt and decrypt messages easily using asymmetric encryption.

It includes several methods for generating a
Aniket Magadum (@magadum_aniket) 's Twitter Profile Photo

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป We use database seeders to generate test/fake data for our application to work with. But what if you need to run these seeders inside your test cases? Not to worry โ€” Laravel's base test class makes use of the InteractsWithDatabase trait, which

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป

We use database seeders to generate test/fake data for our application to work with.

But what if you need to run these seeders inside your test cases?

Not to worry โ€” Laravel's base test class makes use of the InteractsWithDatabase trait, which
Aniket Magadum (@magadum_aniket) 's Twitter Profile Photo

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป Do you know how to configure test dependencies inside Pest PHP? Quite often, while working with test cases, you might notice a pattern where the result of one test case depends entirely on the success of another. For example, a test case verifying

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป

Do you know how to configure test dependencies inside Pest PHP?

Quite often, while working with test cases, you might notice a pattern where the result of one test case depends entirely on the success of another.

For example, a test case verifying
Aniket Magadum (@magadum_aniket) 's Twitter Profile Photo

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป You must be very familiar with and have worked with the transaction() method that comes along with the DB Facade. This method takes a callback function as an argument, using which you can perform multiple queries as a transaction, which automatically

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป

You must be very familiar with and have worked with the transaction() method that comes along with the DB Facade.

This method takes a callback function as an argument, using which you can perform multiple queries as a transaction, which automatically
Aniket Magadum (@magadum_aniket) 's Twitter Profile Photo

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป Let me introduce you to Torchlight!! If you've ever wanted to develop a website with Laravel that displays code blocks written in Laravel, this is the package you might need. This package lets you style your code just like you would see in VS Code, as

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป

Let me introduce you to Torchlight!!

If you've ever wanted to develop a website with Laravel that displays code blocks written in Laravel, this is the package you might need.

This package lets you style your code just like you would see in VS Code, as
Aniket Magadum (@magadum_aniket) 's Twitter Profile Photo

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป Have you ever faced problems or headaches keeping your API documentation in sync with ongoing development? Not to worry โ€” let me introduce you to Scramble โ€” a Laravel OpenAPI (Swagger) Documentation Generator. This package, once installed,

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป

Have you ever faced problems or headaches keeping your API documentation in sync with ongoing development?

Not to worry โ€” let me introduce you to Scramble โ€” a Laravel OpenAPI (Swagger) Documentation Generator.

This package, once installed,
Aniket Magadum (@magadum_aniket) 's Twitter Profile Photo

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป Starting with Laravel v12.8.0, the Eloquent Collection class has a new method called withRelationshipAutoloading(). This method, as the name suggests, loads the requested relationship as and when it is used, instead of us manually specifying the eager

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป

Starting with Laravel v12.8.0, the Eloquent Collection class has a new method called withRelationshipAutoloading().

This method, as the name suggests, loads the requested relationship as and when it is used, instead of us manually specifying the eager
Aniket Magadum (@magadum_aniket) 's Twitter Profile Photo

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป You must be aware of the recently introduced withRelationshipAutoloading() method in the Eloquent Collection class. This method eager loads a relationship when it is first called instead of requiring us to specify the eager load. But there is one

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป

You must be aware of the recently introduced withRelationshipAutoloading() method in the Eloquent Collection class.

This method eager loads a relationship when it is first called instead of requiring us to specify the eager load.

But there is one
Aniket Magadum (@magadum_aniket) 's Twitter Profile Photo

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป You must know about the relationLoaded() method that comes with Laravel Eloquent. This method allows us to check if a given relation is already loaded into the current model or not. Now, starting with Laravel v12.10.0, this method is buffed; this

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป

You must know about the relationLoaded() method that comes with Laravel Eloquent.

This method allows us to check if a given relation is already loaded into the current model or not.

Now, starting with Laravel v12.10.0, this method is buffed; this
Aniket Magadum (@magadum_aniket) 's Twitter Profile Photo

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป Youโ€™re probably already familiar with the unique validation rule that comes with Laravel. This validation rule allows us to check whether a row already exists in a database table with the same value as the given input. However, there's one caveat:

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป

Youโ€™re probably already familiar with the unique validation rule that comes with Laravel.

This validation rule allows us to check whether a row already exists in a database table with the same value as the given input.

However, there's one caveat:
Ash Allen ๐Ÿš€ (@ashallendesign) 's Twitter Profile Photo

GIVEAWAY TIME! ๐ŸŽ‰ I'm giving away a copy of The Web Dev's Guide to Freelancing I'll ship it to anywhere in the world! ๐ŸŒŽ To enter, you just need to retweet and like this post. I'll announce the winner next week on Tuesday 6th May ๐Ÿ˜

GIVEAWAY TIME! ๐ŸŽ‰

I'm giving away a copy of The Web Dev's Guide to Freelancing

I'll ship it to anywhere in the world! ๐ŸŒŽ 

To enter, you just need to retweet and like this post.

I'll announce the winner next week on Tuesday 6th May ๐Ÿ˜
Aniket Magadum (@magadum_aniket) 's Twitter Profile Photo

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป Do you know about the Timebox helper class that comes with Laravel? The Timebox helper class allows you to specify a fixed time for a given callback function to execute. If the callback function takes less time than the specified time, the response

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป

Do you know about the Timebox helper class that comes with Laravel?

The Timebox helper class allows you to specify a fixed time for a given callback function to execute.

If the callback function takes less time than the specified time, the response
Aniket Magadum (@magadum_aniket) 's Twitter Profile Photo

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป Let me introduce you to two helper methods available on the DB facade: getQueryLog() and enableQueryLog(). You can probably guess the meaning of these methods by their names. They are especially useful inside your test cases when you want to figure out

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป

Let me introduce you to two helper methods available on the DB facade: getQueryLog() and enableQueryLog().

You can probably guess the meaning of these methods by their names. They are especially useful inside your test cases when you want to figure out
Aniket Magadum (@magadum_aniket) 's Twitter Profile Photo

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป You should be familiar with the Context class, which is included with Laravel, allowing us to share variables between multiple files throughout the request lifecycle. Starting with Laravel v12.20.0, we have new remember() and rememberHidden() methods

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป

You should be familiar with the Context class, which is included with Laravel, allowing us to share variables between multiple files throughout the request lifecycle.

Starting with Laravel v12.20.0, we have new remember() and rememberHidden() methods
Aniket Magadum (@magadum_aniket) 's Twitter Profile Photo

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป Starting with Laravel v12.21.0, we have a new whereValueBetween() method on the query builder object. This method, as the name suggests, allows us to check whether a given value lies between the values of two columns of the same type in a table. This

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป

Starting with Laravel v12.21.0, we have a new whereValueBetween() method on the query builder object.

This method, as the name suggests, allows us to check whether a given value lies between the values of two columns of the same type in a table.

This
Aniket Magadum (@magadum_aniket) 's Twitter Profile Photo

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป You must be aware of the dontReport() method available in the Exceptions class, which allows us to specify Exception classes that we do not want to report inside our log files. Starting from Laravel v12.21.0, we have introduced a new dontReportWhen()

Hey Laravel Developers ๐Ÿ‘ฉโ€๐Ÿ’ป

You must be aware of the dontReport() method available in the Exceptions class, which allows us to specify Exception classes that we do not want to report inside our log files.

Starting from Laravel v12.21.0, we have introduced a new dontReportWhen()