Join WhatsApp ChannelJoin Now

Laravel 8 Call to undefined function str_slug()

Hi,

Today, i we will show you laravel 8 call to undefined function str_slug(). This article will give you simple example of laravel 8 call to undefined function str_slug(). you will learn laravel 8 call to undefined function str_slug(). So let’s follow few step to create example of laravel 8 call to undefined function str_slug().

Laravel 8 Call to undefined function str_slug()

Install laravel/helpers package

composer require laravel/helpers

Use the below code in your own controller

use Illuminate\Support\Str;
$posts->slug = str_slug($request->input('title').' '.$posts->id, '-');

Recommended Posts