📜  laravel 目标在构建时不可实例化 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:59.930000             🧑  作者: Mango

代码示例1
// 1) Make sure the service Provider is listed in 
//     "config->app-> array of providers"

// 2) Bind interface & concrete class 
$this->app->bind(MyInterface::class, MyRepository::class);

// 3) Clear Config Cache
php artisan config:cache