title: how to delete a row using findOrfail with multiple or different column to ID. Laravel
body: <p>Im new in lavravel and and try to delete a row using laravel and a simple code</p>
  
  <pre><code>&lt;div class="col-md-12"&gt;
  @if (count($usuarios) &gt; 0)
  &lt;?php echo $usuarios?&gt;
  &lt;div class="panel panel-default"&gt;
      &lt;div class="panel-heading"&gt;
          Listado de Usuarios
      &lt;/div&gt;
      &lt;div class="panel-body"&gt;    
      &lt;table class="table table-striped task-table"&gt;
          &lt;thead&gt;
              &lt;th&gt;Usuario&lt;/th&gt;
              &lt;th&gt;Correo electrónico&lt;/th&gt;
              &lt;th&gt;Telefono&lt;/th&gt;
              &lt;th&gt;Celular&lt;/th&gt;
              &lt;th&gt;Acción&lt;/th&gt;
          &lt;/thead&gt;    
          &lt;tbody&gt;
          @foreach($usuarios as $usuario)
              &lt;tr&gt;
                  &lt;td class="table-text"&gt;
                      &lt;div&gt;{{ $usuario-&gt;fname }} {{ $usuario-&gt;mname }} {{ $usuario-&gt;lname }} {{ $usuario-&gt;lname2 }}&lt;/div&gt;
                  &lt;/td&gt;
                  &lt;td class="table-text"&gt;
                      &lt;div&gt;{{ $usuario-&gt;email }} &lt;/div&gt;
                  &lt;/td&gt;
                  &lt;td class="table-text"&gt;
                      &lt;div&gt;{{ $usuario-&gt;telefono }} &lt;/div&gt;
                  &lt;/td&gt;
                  &lt;td class="table-text"&gt;
                      &lt;div&gt;{{ $usuario-&gt;celular }} &lt;/div&gt;
                  &lt;/td&gt;
  
                  &lt;td&gt;
                      &lt;form action="{{ url('usuario') }}/{{ $usuario-&gt;ident }}" method="POST"&gt;
                      {{ csrf_field() }}
                      {{ method_field('DELETE') }}
  
                      &lt;button type="submit" class="btn btn-danger"&gt;
                          &lt;i class="fa fa-trash"&gt;&lt;/i&gt;Delete
                      &lt;/button&gt;
  
                      &lt;/form&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              @endforeach
          &lt;/tbody&gt;
      &lt;/table&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  @endif
  </code></pre>
  
  <p>
  and I have my web.php </p>
  
  <pre><code>use App\Usuario;
  use Illuminate\Http\Request;
  
  Route::get('/', function () {
  return view('welcome');
  });
  
   /*Mostrar los Usuarios*/
   Route::get('/usuarios', function () {
   $usuarios = Usuario::all();
   return view('usuarios', [ 'usuarios' =&gt;$usuarios ]);
  
  
   });
  
   Route::post('/usuario', function (Request $request) {
   $validator = Validator::make($request-&gt;all(), [
      'ident' =&gt; 'required|digits_between:5,12',
      'fname' =&gt; 'required|max:20',
      'mname' =&gt; 'required|max:20',
      'lname' =&gt; 'required|max:20',
      'lname2' =&gt; 'required|max:20',
      'email' =&gt; 'email',
      'telefono' =&gt; 'min:7',
      'celular' =&gt; 'min:10',
  
    ]);
  
   if ($validator-&gt;fails()){
      return redirect('/usuarios')
          -&gt;withErrors($validator)
          -&gt;withInput();
  
   }
  $usuario = new Usuario;
  $usuario-&gt;fk_id_tid = $request-&gt;id_tid;
  $usuario-&gt;ident = $request-&gt;ident; 
  $usuario-&gt;fname = $request-&gt;fname;
  $usuario-&gt;mname = $request-&gt;mname;
  $usuario-&gt;lname = $request-&gt;lname;
  $usuario-&gt;lname2 = $request-&gt;lname2;
  $usuario-&gt;email = $request-&gt;email;
  $usuario-&gt;telefono = $request-&gt;telefono;
  $usuario-&gt;celular = $request-&gt;celular;
  
  $usuario-&gt;save();
  
  return redirect('/usuarios');
  });
  
  **Route::delete('/usuario/{ident}', function ($ident) {
  Usuario::findOrFail($ident)-&gt;delete();** 
  
  return redirect('/usuarios');
   });
  </code></pre>
  
  <p>When I try to delete a Row, Receive error: </p>
  
  <p>SQLSTATE[42S22]: Column not found: 1054 Unknown column 'usuario.id' in 'where clause' (SQL: select * from <code>usuario</code> where <code>usuario</code>.<code>id</code> = 14397755 limit 1)</p>
  
  <p>I need to find usuario.ident for delete that row.. </p>
  
  <p>Well Really I need to make a composite with {fk_id_tid &amp; ident} If I find it --> delete that row..</p>