Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

laravel 5.2 #150

Closed
PheRum opened this issue Jan 24, 2016 · 4 comments
Closed

laravel 5.2 #150

PheRum opened this issue Jan 24, 2016 · 4 comments

Comments

@PheRum
Copy link

PheRum commented Jan 24, 2016

Will support laravel 5.2?

@freekmurze
Copy link
Member

There was a problem with one of the dependencies. This has been solved.

You should be able to install the package in L5.2 without any problems.

screen shot 2016-01-25 at 14 45 29

@PheRum
Copy link
Author

PheRum commented Jan 26, 2016

@PheRum
Copy link
Author

PheRum commented Jan 29, 2016

version 3.14

 [ErrorException]         
  Undefined index: scheme

dev-master all good

update your version for composer please

and replace your migration

<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMediaTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('media', function (Blueprint $table)
        {
            $table->increments('id');
            $table->morphs('model');
            $table->string('collection_name');
            $table->string('name');
            $table->string('file_name');
            $table->string('disk');
            $table->unsignedInteger('size');
            $table->text('manipulations');
            $table->text('custom_properties');
            $table->unsignedInteger('order_column')->nullable();
            //$table->timestamps();
            $table->timestamp('created_at')->default('0000-00-00 00:00');
            $table->timestamp('updated_at')->default('0000-00-00 00:00');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::drop('media');
    }
}

this is temporary fix for laravel 5.2 laravel/framework#11518

//$table->timestamps();
$table->timestamp('created_at')->default('0000-00-00 00:00');
$table->timestamp('updated_at')->default('0000-00-00 00:00');

@freekmurze
Copy link
Member

@i fixed this in the newly tagged version 3.14.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants