for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of questocat/laravel-rally package.
*
* (c) questocat <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateFollowablesTable extends Migration
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
/**
* Run the migrations.
public function up()
Schema::create(config('rally.followers_table', 'followables'), function (Blueprint $table) {
$table->increments('id');
$table->integer('follower_id')->unsigned()->index();
$table->morphs('followable');
$table->timestamps();
$table->foreign('follower_id')
->references('id')
->on(config('rally.follower_table', 'users'))
->onUpdate('cascade')
->onDelete('cascade');
});
}
* Reverse the migrations.
public function down()
Schema::drop(config('rally.followers_table', 'followables'));
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.