Error - Call To Undefined Function Mb_strcut() In Laravel (Solved)

Hello Artisan,

In this tutorial, I will show you how to solve call to undefined function mb strcut in laravel? If you face this error in your laravel application, then you can follow this tutorial call to undefined function mb_strcut() in laravel. 

I have installed the PHP 8.1 version and I need to install mbstring extension. I have checked mbstring extension is there on my system or not by using the below command:

php -m | grep mbstring


If nothing found on the above command then we need to install mbstring by following version vise solution:

Solution for PHP 8.1:

sudo apt-get install php8.1-mbstring


Solution for PHP 8.0:

sudo apt-get install php8.0-mbstring


Solution for PHP 7.4:

sudo apt-get install php7.4-mbstring


Read also: Laravel Eloquent Find by Column Query Example


Hope it can help you.