Skip to content

Instantly share code, notes, and snippets.

@programarivm
Created November 5, 2019 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save programarivm/2948ec57b132adf0e5f8ae1015a9c76c to your computer and use it in GitHub Desktop.
Save programarivm/2948ec57b132adf0e5f8ae1015a9c76c to your computer and use it in GitHub Desktop.
Acl table
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateAclsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('acls', function (Blueprint $table) {
$table->increments('id');
$table->string('resource');
$table->string('role');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('acls');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment