for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateGroupsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('groups', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->integer('type')->default(1);
$table->timestamps();
});
Artisan::call('make:permission Group --all');
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('groups');