Category: PHP

The website encountered an unexpected error.

After updating Drupal Core if you encountered error displayed in image above make sure you have cleared the cache.

 Posted in CMS, PHP Tagged , , ,

Drupal core upgrade 9.1.2

How to upgrade Drupal core manually or via composer?

 Posted in CMS, PHP Tagged , ,

PHP vs Python vs Ruby on Rails Comparison

What is the best choice for website / server side web development?

 Posted in Development, PHP, Python, Ruby on Rails Tagged , , , , ,

PHP: How to convert stdclass to array

Let’s see how to convert single-dimension and Multi-dimension Object to Array.

 Posted in Daily Tips, PHP Tagged , , , ,

Traits in PHP and Laravel?

This is a fact that in PHP you can only have single inheritance. That means a class can inherit from only one other class.

 Posted in Laravel, PHP Tagged , , , ,

Shorthand comparisons in PHP

If you are a programmer then you may already know about comparison operators or shorthand comparisons.

 Posted in PHP Tagged ,
database

What is the difference between a model and a repository

Repository actually allows you to separate your business logic from database layer (Model). Repository/Entity are…

 Posted in Databases, Eloquent, Laravel, PHP, Symfony, Tips, Uncategorized Tagged , , , , , , ,
Laravel

Solved: local.ERROR: RuntimeException: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths

I got this issue while setting up LumenPassport in Laravel/Lumen micro framework. Error local.ERROR: RuntimeException:…

 Posted in Laravel, Lumen, PHP Tagged , , , , , , , ,
Laravel

Solved: Call to undefined method Laravel\Lumen\Application::group()

You might have come across this issue while setting up LumenPassport When you are listing…

 Posted in Laravel, Lumen, PHP Tagged , ,
Laravel

Upgrade Laravel 5.6 to 5.7 – Failed to clear cache

I upgraded my app from Laravel 5.6 to 5.7 by following official upgrade guideline. After…

 Posted in Laravel, PHP Tagged , , , ,