mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-27 06:29:19 +08:00
25 lines
484 B
PHP
25 lines
484 B
PHP
<?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);
|
|
}
|
|
|
|
}
|