Silber\Bouncer\Database\Models::table PHP Метод

table() публичный статический Метод

Get a custom table name mapping for the given table.
public static table ( string $table ) : string
$table string
Результат string
    public static function table($table)
    {
        if (isset(static::$tables[$table])) {
            return static::$tables[$table];
        }
        return $table;
    }

Usage Example

 /**
  * 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'));
 }
All Usage Examples Of Silber\Bouncer\Database\Models::table