for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use CodexShaper\Database\Facades\Schema;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateOauthPersonalAccessClientsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
if (!Schema::hasTable('oauth_personal_access_clients')) {
Schema::create('oauth_personal_access_clients', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('client_id')->index();
$table->timestamps();
});
}
* Reverse the migrations.
public function down()
if (Schema::hasTable('oauth_personal_access_clients')) {
Schema::dropIfExists('oauth_personal_access_clients');