for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @Author: bantenprov
* @Date: 2017-11-28 00:54:01
* @Last Modified by: bantenprov
* @Last Modified time: 2017-11-28 00:54:10
*/
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateApiManagerTable 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.
public function up()
{
Schema::create('api_keys', function(Blueprint $table) {
$table->increments('id');
$table->timestamps();
$table->softDeletes();
$table->integer('user_id');
$table->string('client', 225);
$table->string('api_key', 255);
$table->text('description');
$table->integer('is_published')->default('1');
});
}
public function down()
Schema::drop('api_keys');
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.