I have a fairly simple migration that produces the following error:
[Symfony\Component\Debug\Exception\FatalErrorException]
Call to undefined method Illuminate\Support\Collection::pluck()
I can rollback but I cannot migrate up. I'm using "laravel/framework": "5.1.*@dev",
and this is the migration:
public function up()
{
Schema::table('tutorials', function (Blueprint $table) {
$table->string('url');
$table->string('title');
$table->text('description');
$table->string('image');
});
}
The pluck
method is defined in Illuminate\\Support\\Collection
so I'm sort of at a loss. I've run composer dump
, as well. Any ideas?
Consider using laravel version "5.1.*"
which will evaluate to 5.1.4 This is because @dev is constantly under development and not all of its functional may be in place. Today one thing will work while the next day another fails. Recommendation is to use a stable version then run the migrations to see if they work.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.