i have a project where i have a 'habits' table, and that table needs a seeder to give it data, simply put, its a seeder with raw data, and i need to cook it, in other terms i need to process it like so...
public function run()
{
$Habits = [
'Good' => ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J'],
'Neutral' => ['k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 't'],
'☹️Bad' => ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'],
];
foreach ($habits as $habit_category => $names) {
foreach ($names as $name) {
DB::table('habits')->insert([
'name' => $name,
'category' => $habit_category
]);
}
}
}
and here is the database seeder
public function run()
{
$this->call([
HabitsSeeder::class,
]);
}
i know the logic is not flawed, but idk if im doing it right but anyway, the error given is in the title:
"Call to undefined function Termwind\ValueObjects\mb_strimwidth()"