title: Eloquent, Delete not working, Laravel 5
body: <p>i'm working on a web app using eloquent and laravel 5. The problem is that i'm trying to delete a row of a table called "Ponderacion" but when i send the ajax delete request, the server stops (it stops the execution of the routed function but the server keeps running) at the line where the delete is, without throwing any errors.</p>
  
  <p>Here is the Model of Ponderacion:</p>
  
  <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Database\Eloquent\Model;
  
  class Ponderacion extends Model{
      protected $table = 'Ponderacion';
      protected $fillable = array('ponderacionidearea', 'ConfiguracionDeExamenifconf', 'peso');
      public $timestamps = false;
  }
  </code></pre>
  
  <p>Here is the function in the Controller:</p>
  
  <pre><code>public function deleteConfig(Request $request){
              error_log('deleting');
              $s_area = Area::where('nombre', '=', $request-&gt;input('s_area'))-&gt;first();
              error_log(count($s_area-&gt;Configuracion-&gt;first()-&gt;Ponderacion));
              //DB::statement('delete from Ponderacion where idponderacion = 22');
              foreach ($s_area-&gt;Configuracion-&gt;first()-&gt;Ponderacion as $ponderacion){
  
                  error_log($ponderacion-&gt;peso);
                  try{
                      $ponderacion-&gt;delete();
                  }catch(Exception $e){
                      error_log('failure');
                  }
              }
              //$s_area-&gt;Configuracion-&gt;first()-&gt;Ponderacion-&gt;delete();
              error_log('succesfully deleted');
              $s_area-&gt;Configuracion-&gt;first()-&gt;delete();
  
          }
  </code></pre>
  
  <p>I can succesfully print the property "peso" of ponderacion but i'm unable to delete it. Ponderacion has Foreign Keys to other table but no other table has a reference to Ponderacion. I'm able to delete a row of Ponderacion with DB::statement but that is not secure.Succesfully deleted never shows on console.</p>
  
  <p>Thanks in advance.</p>