Laravel School

Snippet Github Twitter

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.

Latest Articles

Implement the Open Closed Principle in Laravel for Sign Up

1 year ago
3322 views
In this tutorial, I will show you how to implement the Open Closed Principle in Laravel for Sign up a user. Here my intention is to apply OCP on Sign up so that you can relate it to your real-life sc...

Avoid inline code and logic |Write Clean Code - Part 2

1 year ago
1161 views
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...

Apply The Open Closed Principle in Laravel | Part 2

1 year ago
4920 views
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...

How to Find any file in Github Repo easily

1 year ago
836 views
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...

How to reduce condition from Model | Write Clean Code - Part 2

1 year ago
1544 views
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....

Reduce If else in PHP | Write Clean Code - Part 1

1 year ago
2603 views
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....

Laravel Check If Relationship has Loaded or Not

1 year ago
2007 views
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...

PHP Fatal error: Declaration of Tests\TestCase::setUp() must be compatible

1 year ago
3556 views
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(...

Macbook Update PHP Version Globally

1 year ago
1307 views
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...

Laravel Testing: How to do Login PHP UnitTest

1 year ago
1989 views
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...