OfficialFinanceAuth.php 425 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: z-yang
  5. * Date: 2018/6/29
  6. * Time: 15:51
  7. */
  8. namespace App\Http\Middleware;
  9. use Closure;
  10. class OfficialFinanceAuth
  11. {
  12. /**
  13. * 判断是否登陆.
  14. */
  15. public function handle($request, Closure $next)
  16. {
  17. if(session('finance_manage_channel_uer_id')){
  18. return $next($request);
  19. }else{
  20. return redirect('/login');
  21. }
  22. }
  23. }