for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Arcanedev\LaravelAuth\Bases\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
/**
* Class CreatePermissionsTable
*
* @author ARCANEDEV <[email protected]>
*/
class CreateAuthPermissionsGroupTable extends Migration
{
/* ------------------------------------------------------------------------------------------------
| Constructor
| ------------------------------------------------------------------------------------------------
* Make a migration instance.
public function __construct()
parent::__construct();
$this->setTable(config('laravel-auth.permissions-group.table'));
}
| Main Functions
* Run the migrations.
public function up()
Schema::connection($this->connection)->create($this->table, function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('slug');
$table->string('description')->nullable();
$table->timestamps();
$table->unique('slug');
});