for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Anomaly\Streams\Platform\Database\Migration\Migration;
use Illuminate\Database\Schema\Blueprint;
/**
* Class CreateJobsTable
*
* @link http://anomaly.is/streams-platform
* @author AnomalyLabs, Inc. <[email protected]>
* @author Ryan Thompson <[email protected]>
*/
class CreateJobsTable 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.
* @return void
public function up()
Schema::create(
'jobs',
function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedInteger('created_at');
$table->unsignedInteger('available_at');
$table->unsignedInteger('reserved_at')->nullable();
$table->string('queue');
$table->longText('payload');
$table->tinyInteger('attempts')->unsigned();
$table->tinyInteger('reserved')->unsigned();
$table->index(['queue', 'reserved', 'reserved_at']);
}
);
* Reverse the migrations.
public function down()
Schema::drop('jobs');
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.