thanks for read. I was creating a model in Laravel 4 while run dump-autoload with Artisan and everything stop working.
I was searching a lot how to fix this problem but i cant find any solution.
I was uninstall Laravel and install again, the problem solved but when i repeat the process, the problem appears again.
Sorry about my english.
The error:
Symfony \ Component \ Debug \ Exception \ FatalErrorException Call to undefined method Illuminate\Routing\Router::deleted()
The line:
\vendor\laravel\framework\src\Illuminate\Routing\Router.php:281
$this->{$route['verb']}($route['uri'], $action);
My model:
<?php
use LaravelBook\Ardent\Ardent;
class Programacion extends Ardent {
/**
* Ardent validation rules
*/
public static $rules = array(
'autor' => 'required',
'etiquetas' => 'required',
'sala_id' => 'required|integer',
'genero_id' => 'required|integer',
'teatro_id' => 'required|integer',
'img_portada' => 'required',
'img_miniatura' => 'required',
'estado' => 'required|integer',
'referencia' => 'required'
);
}
My method in controller:
/**
* Store a newly created resource in storage.
*
* @return Response
*/
public function postCreate()
{
$programacion = Programacion::create(
Input::all()
);
//$post = Input::all();
}