title: How to make a POST request in Laravel?
body: <p>I created an API. Get request works. I try to perform POST request.</p>
  
  <p>In <code>HomeController</code></p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  class HomeController extends Controller
  {
      public function __construct()
      {
          $this-&gt;middleware('auth');
      }
  
      public function store(Request $request)
      {
          $name = Auth::user()-&gt;name;
          $ip = Request::ip();
  
          $user = User::create([
              'name' =&gt; $request-&gt;input('name'),
              'ip' =&gt; $request-&gt;input('ip')
          ]);
          return $user;
      }
  
      public function index()
      {
          return view('home');
      }
  }
  </code></pre>
  
  <p>My routes</p>
  
  <pre class="lang-php prettyprint-override"><code>Route::get('/home', 'HomeController@index')-&gt;name('home');
  Route::post('/api/person', 'HomeController@store');
  </code></pre>
  
  <p>I try to Post through POSTMAN. </p>
  
  <p>Got "message":</p>
  
  <blockquote>
    <p>"CSRF token mismatch.", "exception": "Symfony\Component\HttpKernel\Exception\HttpException"...</p>
  </blockquote>
  
  <p>Where is the error coming from?</p>