Комментарии:
Thanks for this totorial...
Ответитьgreat work bro
ОтветитьAwesome
Ответить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();
Thanks bro for this.
Ответить