title: Laravel 5 home page controller
body: <p>After login it will redirect to <a href="http://localhost/laravel/public/home" rel="nofollow">http://localhost/laravel/public/home</a></p>
  
  <p>So view file location will be \resources\views\home.blade.php.</p>
  
  <p>Now on this home page i'm able to get login user id </p>
  
  <pre><code>&lt;?php
  echo $id = Auth::id();
  ?&gt;
  </code></pre>
  
  <p>now i have created controller using</p>
  
  <pre><code>D:\wamp\www\laravel&gt;php artisan make:controller HomeController
  </code></pre>
  
  <p>Controller created successfully.</p>
  
  <p>Now on home page i have to show some data on basis of logged in user.</p>
  
  <p>In home controller if i do echo exit, but it's not working. So in which controller file i have to write code?</p>
  
  <p>HomeController.php </p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  
  use App\Http\Requests;
  use App\Http\Controllers\Controller;
  
  class HomeController extends Controller
  {
      /**
       * Display a listing of the resource.
       *
       * @return Response
       */
      public function index()
      {
  
      }
  
      /**
       * Show the form for creating a new resource.
       *
       * @return Response
       */
      public function create()
      {
          //
      }
  
      /**
       * Store a newly created resource in storage.
       *
       * @param  Request  $request
       * @return Response
       */
      public function store(Request $request)
      {
          //
      }
  
      /**
       * Display the specified resource.
       *
       * @param  int  $id
       * @return Response
       */
      public function show($id)
      {
          //
      }
  
      /**
       * Show the form for editing the specified resource.
       *
       * @param  int  $id
       * @return Response
       */
      public function edit($id)
      {
          //
      }
  
      /**
       * Update the specified resource in storage.
       *
       * @param  Request  $request
       * @param  int  $id
       * @return Response
       */
      public function update(Request $request, $id)
      {
          //
      }
  
      /**
       * Remove the specified resource from storage.
       *
       * @param  int  $id
       * @return Response
       */
      public function destroy($id)
      {
          //
      }
  }
  </code></pre>