How to use PHP __call() Magic Method?
The PHP `__call()` magic method is an incredibly powerful tool for dynamic method handling and custom object behaviors.
The PHP `__call()` magic method is an incredibly powerful tool for dynamic method handling and custom object behaviors.
If you come across from procedural PHP programming, __autoload__ and __namespace__ kind of confusing naming for you. To make it easier, today, I will take a deep dive into understanding autoload and namespace in PHP.
Suddenly I feel to improve my knowledge about Clean architecture in PHP. As of, I started reading some books, tutorials, and screencasts. There are lots of content around the internet. I plan to write my extractions that I have learned from those sources. Hopefully, it will be helpful for you. Today, I will share in what context clean PHP architecture is suitable for your project.
In this series to tutorials, my plan is to take some real-life code and try to refactor the code as much as I can. Today, I will show you how to reduce unnecessary condition from the Laravel Model.
Unfortunately, there is no unique way to write code. Although there are some set of rules of writing code, however, programmers are free to write code in their own style, especially the logical part. We often see the code that contains a lot of `if-else` statement, even __nested if-else__.
Now, sometimes if you need to check whether the model has loaded the eager loading or not, then you need to check with `relationLoaded()`. Here is how you check this-
If you are suddenly facing the issue on Laravel testing that, **PHP Fatal error Declaration of Tests\TestCase::setUp() must be compatible with Illuminate\Foundation\Testing\TestCase::setUp():....** in that case, this post might be helpful for you.
If you are using MacBook and you want to update your current PHP version, it might be troublesome for you in some cases.
Today, I will show you how to do Login PHP UnitTest with Laravel. This article will cover the login testing part only.
Today, I will show you the purpose of `array_sum()` and a practical uses of it.
Writing your first PHP Unit Test | Learning PHPUnit - Part 2
Learning PHPUnit | Part 1
How to Upgrade PHP Version on mac
How do we rewrite Sclrship?
Laravel use PUT or PATCH in Postman
How to add extra values in Laravel Request
How to use Slug in Laravel Factory
Building a delighted RESTful API with Laravel
An Introduction to Laravel Policy
Deep Diving into Laravel Sub-query