How to make instant redirection in Laravel

后端 未结 3 981
死守一世寂寞
死守一世寂寞 2021-01-21 18:37

I want to make an instant redirection in my controller in Laravel.

I know I can use

public function show($page) 
{   
   return Redirect::url(\'http://ex         


        
3条回答
  •  长情又很酷
    2021-01-21 19:04

    You have to return the results of the method in the base controller.

    return $this->checkPages($page, $totalPages, 'http://example.com');

提交回复
热议问题