public static function table($table) { if (isset(static::$tables[$table])) { return static::$tables[$table]; } return $table; }
/** * Reverse the migrations. * * @return void */ public function down() { Schema::drop(Models::table('permissions')); Schema::drop(Models::table('assigned_roles')); Schema::drop(Models::table('roles')); Schema::drop(Models::table('abilities')); }