Generate unique slug using Laravel mutator | Full stack Laravel vue development | Part 37

Generate unique slug using Laravel mutator | Full stack Laravel vue development | Part 37

2,857 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Muhammad Mu'min Azis
Muhammad Mu'min Azis - 03.07.2022 03:02

Thanks for this totorial...

Ответить
james kanyi
james kanyi - 13.04.2021 20:18

great work bro

Ответить
Abraham
Abraham - 10.12.2020 00:02

Awesome

Ответить
Samuel Torres
Samuel Torres - 25.10.2020 00:50

To answer my previous question in the comments, I had to create another migration and modify some fields and make them nullable in order for the code in the video to run and for the mutator to be able to create a row in the DB. These were the lines I used in my updated migration:

$table->string('title')->nullable()->default('')->change();
$table->string('slug')->nullable()->default('')->change();
$table->string('featuredImage')->nullable()->change();

Ответить
Mark Jayson Bercasio
Mark Jayson Bercasio - 27.06.2020 21:58

Thanks bro for this.

Ответить