title: Laravel Login and save user details
body: <p><strong>I want to save the user id,name etc</strong> when a successfull login happens.</p>
  
  <p>This is my code,</p>
  
  <pre><code>public function Login(Request $request){
          $result1=json_decode(DB::table('tbl_admin_details')
          -&gt;where('Username',$request-&gt;input('username'))
          -&gt;where('Password',base64_encode($request-&gt;input('password')))
          -&gt;get(),true);
         if(count($result1)&gt;0){
             return redirect('dashboard');
         }else{
             return redirect('/');
         }
      }
  </code></pre>
  
  <p>when a successfull login happens it will redirect to dashboard, I need to <strong>access the user data in that page</strong>. how its  possible ???</p>