blessing-skin-server/app/Services/Schema.php

25 lines
484 B
PHP
Raw Normal View History

2016-07-28 12:01:00 +08:00
<?php
namespace App\Services;
use Illuminate\Database\Capsule\Manager as Capsule;
class Schema
{
/**
* Facade for Illuminate\Database\Schema
*
* @param string $method
* @param array $args
* @return mixed
*/
public static function __callStatic($method, $args)
{
// the instance of capusle has been set as global
$instance = Capsule::schema();
return call_user_func_array([$instance, $method], $args);
}
}