title: Laravel - Edit and Update Page
body: <p>I am using Laravel and I am trying to create an edit page and call my update method on submit, the problem is I am getting a 404 when updating. This is my blade file for editing like so:</p>
  
  <pre><code>@extends('adminlte::page')
  
  @section('title', 'AdminLTE')
  
  @section('content_header')
      &lt;h1&gt;Professions&lt;/h1&gt;
  @stop
  
  @section('content')
      &lt;form method="PUT" action="/admin/professions-update/{{ $data-&gt;pkprofession }}"&gt;
          &lt;div class="form-group"&gt;
              &lt;label for="profession_name"&gt;Profession Name&lt;/label&gt;
              &lt;input type="text" name="profession_name" id="profession_name" class="form-control" value="{{$data-&gt;profession_name}}" /&gt;
          &lt;/div&gt;
          &lt;div class="form-group"&gt;
              &lt;button type="submit" class="btn btn-success"&gt;Update&lt;/button&gt;
          &lt;/div&gt;
      &lt;/form&gt;
  @stop
  </code></pre>
  
  <p>Here are my routes:</p>
  
  <pre><code>Route::get('/admin/professions-edit/{id}', 'v1\ProfessionsController@edit');
  Route::put('/admin/professions-update/{id}', 'v1\ProfessionsController@update');
  </code></pre>
  
  <p>And Here are the methods being called:</p>
  
  <pre><code>public function edit($id)
      {
          $data = PdTprofession::find($id);
          return view('professions-edit', compact('data'));
      }
  
  public function update(Request $request, $id)
      {
          $data = PdTprofession::find($id);
          return view('professions-edit', compact('data'));
      }
  </code></pre>
  
  <p>Why am I getting a 404 error and how do I fix it?</p>
  
  <p>Thanks,</p>