app/Http/Controllers/home/ConsigneeController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $data = session('homeuser');
        if($data){
            return view('home.consignee.consignee',['title'=>'收货人信息']);
        }else{
            return redirect('/home/login/index')->with('success','需要登录');
        }
    }
public function index ( ) { $ data = session ( 'homeuser' ) ; if ( $ data ) { return view ( 'home.consignee.consignee' , [ 'title' => '收货人信息']); } else { return redirect ( '/home/login/index' ) -> with ( 'success' , '需要登录'); } }
Display a listing of the resource.
Display a listing of the resource .