Hello. I’m Thouhedul Islam. Some people also know me as Suchi.
I am a Full-stack Developer. I love to play with PHP especially Laravel, JavaScript, MySql, and the latest web technology. Currently, I am working for GLEIF as my day time job.
At night I love to solve problems for the community. I love to be active at Laracasts.
In our [previous post](http://laravel-school.com/posts/reduce-if-else-in-php-write-clean-code-part-1-38) we wrote how to reduce if else in php in order to write the clean. Today, I am going to show yo...
In this post, we will learn how to implement the Open-Closed Principle in Laravel. This is the continuation of the previously posted article [ Apply The Open Closed Principle in Laravel | Part 1 ](htt...
No doubt that github become one of the essential parts of the developers nowadays. Modern developers fully depend on git-flow to produce a better result. But sometimes searching on github repo is not...
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....
One of the nice things of Larave is [eager loading](https://laravel.com/docs/5.8/eloquent-relationships#eager-loading). Now, sometimes if you need to check whether the model has loaded the eager loadi...
Hello
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(...
If you are using MacBook and you want to update your current PHP version, it might be troublesome for you in some cases. There are [many ways](http://laravel-school.com/posts/how-to-upgrade-php-versio...
Today, I will show you how to do Login PHP UnitTest with Laravel. This article will cover the login testing part only.
**I assume that you have migrated laravel default database and create the r...
In PHP, there is a built-in function called **[array_sum()](https://www.php.net/manual/en/function.array-sum.php)**. Normally **array_sum()** help to sum all the elements in an array. Today, I will sh...