<?php

use Illuminate\Database\Migrations\Migration;
use Orchestra\App;
use Orchestra\Model\Role;

class OrchestraControlSeedAcls extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		$role    = Role::admin();
		$acl     = App::acl();
		$actions = array('Manage Roles', 'Manage Acl');

		$acl->actions()->fill($actions);
		$acl->allow($role->name, $actions);
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		// Nothing to do here.
	}

}

<?php

use Illuminate\Database\Migrations\Migration;
use Orchestra\Support\Facades\App;
use Orchestra\Model\Role;

class OrchestraControlSeedAcls extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		$role    = Role::admin();
		$acl     = App::acl();
		$actions = array('Manage Roles', 'Manage Acl');

		$acl->actions()->fill($actions);
		$acl->allow($role->name, $actions);
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		// Nothing to do here.
	}

}

Use facade instead of alias.
Use facade instead of alias.

Signed-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>
