@@ -28,7 +28,8 @@ class Test extends Command
*/
public function handle()
{
-
+ $books = \App\Modules\Book\Services\BookConfigService::getBookByRole('叶安');
+ dd($books);
}
@@ -13,6 +13,6 @@ class BookRole extends Model
public static function getBidByRole($role)
- return self::where('role',$role)->get()->plcuk('bid');
+ return self::where('role',$role)->get()->pluck('bid');