for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreatePermissionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('permissions', function (Blueprint $table) {
$table->id();
$table->string('name', 50);
$table->string('slug')->unique();
$table->string('resource', 20)->default('System');
$table->boolean('system')->default(0);
$table->timestamps();
});
}
* Reverse the migration.
public function down()
Schema::drop('permissions');