我们首先创建一个需要绑定到服务容器的Test类: <?php namespace App\Facades; class Test { public function doSomething() { echo 'This is TestClass\'s method doSomething'; } } 然后创建一个静态指向Test类的门面类TestClass: <?php namespace App\Facades; use Illuminate\Support\Facades\Facade;
介绍 建立迁移文件 迁移文件结构 执行迁移 回滚迁移 填写迁移文件 创建表 重命名/ 删除表 创建字段 修改字段 删除字段 建立索引 删除索引 外键约束 #介绍 Migrations are like version control for your database, allowing a team to easily modify and share the application's database schema. Migrations are typically paired wit