DB Error in Migration and Persistance Lesson
Has anyone had this problem before, I'm not new to PHP but relatively new to Laravel, and following this Lesson: https://laracasts.com/series/laravel-5-from-scratch/episodes/7
When following along around 5:26 into the video we go into a generated migration and set a value:
$table->text('lyrics')->nullable();
This is throwing the warning
Method 'nullable' not found in class Illuminate\Support\Fluent
When I go on with the video to use tinker a couple of minute later to add data to the database, the text column is there, however it's not nullable and requires data. This lesson uses sqlite, however the abstraction shouldn't allow that to matter. The project is running on Homestead 2.0
Looking at the Laravel -dev branch API, I can't find a nullable function anywhere in blueprint or fluent.
Thanks in advance
SOLUTION: There were some left over files after running
php artisan fresh
It leaves some of the default user migrations. Once I manually deleted those, and did a migration:rollback and migrate everything just worked.
Please or to participate in this conversation.