Tag: bug-fixing

Laravel Mixed Content issue and broken stylesheet

If you are facing any issue related with Mixed Content of your laravel project, here could one of the possible solution that recently I faced.

laravel tests Invalid argument supplied for foreach()

If you faced the issue with laravel tests Invalid argument supplied for foreach(), this post might be helpful for you. Recently I was trying to test something, where I was facing this issue. I will write the code in details with the scenario, hope it will be helpful for you.

Laravel Check If Relationship has Loaded or Not

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-

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

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.

How to add new columns to the existing table in Laravel migration

How to add new columns to the existing table in Laravel migration

Laravel migrate failed to open stream - No such file or directory

Laravel migrate failed to open stream - No such file or directory

Laravel Class env does not exist

Laravel Class env does not exist