ConfigController.php 592 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace App\Modules\Mini\Controllers;
  3. use App\Base\BaseController;
  4. use App\Models\Setting;
  5. use App\Models\User\UserAddress;
  6. use App\Models\User\UserFav;
  7. use App\Modules\Mini\Services\AddressService;
  8. use App\Modules\Mini\Services\CompanyService;
  9. use App\Modules\Mini\Services\FavService;
  10. use Faker\Provider\Image;
  11. use Illuminate\Support\Facades\Auth;
  12. class ConfigController extends BaseController
  13. {
  14. public function index()
  15. {
  16. return $this->ok([
  17. "search_keywords" => Setting::whereType(Setting::TYPE_HOT_KEYWORD)->firstOrFail()->value,
  18. ]);
  19. }
  20. }