ApiBaseController.php 343 B

1234567891011121314151617
  1. <?php
  2. namespace App\Base\Controllers;
  3. use App\Base\Services\ApiAuthUser;
  4. use Illuminate\Http\Request;
  5. use Laravel\Lumen\Routing\Controller;
  6. class ApiBaseController extends Controller
  7. {
  8. use ApiAuthUser;
  9. public function getPageSize(Request $request)
  10. {
  11. return $request->input('page_size', config('app.app_rows'));
  12. }
  13. }