app/Http/Controllers/SiteController.php
/**
     * Show the login page and put data into session
     *
     * @return Response
     */
Show the login page and put data into session
@return Response
Show the login page and put data into session @return Response
public function loginWithData(HomeRequest $request)
    {
        if(is_null($request->enterprise_id)) {        
            session()->put('type', 'userThanks');
            session()->put('receiptName', $request->receiptName);
            session()->put('receiptEmail', $request->receiptEmail);
            session()->put('content', $request->content);
        } else {
            session()->put('type', 'enterpriseThanks');
            session()->put('enterprise_id', $request->enterprise_id);
            session()->put('content', $request->content);
        }        
        return view('site.login');
    }
public function loginWithData ( HomeRequest $ request ) { if ( is_null ( $ request -> enterprise_id ) ) { session ( ) -> put ( 'type' , 'userThanks' ) ; session ( ) -> put ( 'receiptName' , $ request -> receiptName ) ; session ( ) -> put ( 'receiptEmail' , $ request -> receiptEmail ) ; session ( ) -> put ( 'content' , $ request -> content ) ; } else { session ( ) -> put ( 'type' , 'enterpriseThanks' ) ; session ( ) -> put ( 'enterprise_id' , $ request -> enterprise_id ) ; session ( ) -> put ( 'content' , $ request -> content ) ; } return view ( 'site.login' ) ; }
Show the login page and put data into session
 @return Response
Show the login page and put data into session @return Response