Giter Site home page Giter Site logo

laravel-rethinkdb's People

Contributors

brunojk avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

chrgriffin

laravel-rethinkdb's Issues

php artisan migrate throw exception

Hey!

Trying Laravel for the first time (and installed rethinkDB yesterday, it's amazing!)
php artisan make:rethink-migration users --create=users

  • the use Illuminate\Database\Schema\Blueprint; call is still in the file, and rethinkdb is not there
  • the following error occur even if I replace the line with use brunojk\LaravelRethinkdb\Schema\Blueprint;

Also, calling php artisan migrate throw the following error:

$ php artisan migrate
  [Symfony\Component\Debug\Exception\FatalThrowableError]         
  Call to a member function supportsSchemaTransactions() on null

The file:

<?php

use Illuminate\Support\Facades\Schema;
use brunojk\LaravelRethinkdb\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUsersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('users', function (Blueprint $table) {
          //$table->increments('hero_id');
          $table->string('name');
          //$table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('users');
    }
}

What should I do? :(

EDIT
Reran with -vvv, output below

 () at /media/Web/RemoteVLUS/www/GameMaster/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:357
 Illuminate\Database\Migrations\Migrator->runMigration() at /media/Web/RemoteVLUS/www/GameMaster/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:177
 Illuminate\Database\Migrations\Migrator->runUp() at /media/Web/RemoteVLUS/www/GameMaster/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:146
 Illuminate\Database\Migrations\Migrator->runPending() at /media/Web/RemoteVLUS/www/GameMaster/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:95
 Illuminate\Database\Migrations\Migrator->run() at /media/Web/RemoteVLUS/www/GameMaster/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php:69
 Illuminate\Database\Console\Migrations\MigrateCommand->fire() at n/a:n/a
 call_user_func_array() at /media/Web/RemoteVLUS/www/GameMaster/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:29
 Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() at /media/Web/RemoteVLUS/www/GameMaster/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:87
 Illuminate\Container\BoundMethod::callBoundMethod() at /media/Web/RemoteVLUS/www/GameMaster/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:31
 Illuminate\Container\BoundMethod::call() at /media/Web/RemoteVLUS/www/GameMaster/vendor/laravel/framework/src/Illuminate/Container/Container.php:539
 Illuminate\Container\Container->call() at /media/Web/RemoteVLUS/www/GameMaster/vendor/laravel/framework/src/Illuminate/Console/Command.php:182
 Illuminate\Console\Command->execute() at /media/Web/RemoteVLUS/www/GameMaster/vendor/symfony/console/Command/Command.php:264
 Symfony\Component\Console\Command\Command->run() at /media/Web/RemoteVLUS/www/GameMaster/vendor/laravel/framework/src/Illuminate/Console/Command.php:167
 Illuminate\Console\Command->run() at /media/Web/RemoteVLUS/www/GameMaster/vendor/symfony/console/Application.php:869
 Symfony\Component\Console\Application->doRunCommand() at /media/Web/RemoteVLUS/www/GameMaster/vendor/symfony/console/Application.php:223
 Symfony\Component\Console\Application->doRun() at /media/Web/RemoteVLUS/www/GameMaster/vendor/symfony/console/Application.php:130
 Symfony\Component\Console\Application->run() at /media/Web/RemoteVLUS/www/GameMaster/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:122
 Illuminate\Foundation\Console\Kernel->handle() at /media/Web/RemoteVLUS/www/GameMaster/artisan:35

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.