Аз съм сравнително нов в laravel и създадох скеле „статия“, използвайки този плъгин:
https://github.com/JeffreyWay/Laravel-4-Generators
И тичане:
php artisan generate:resource article --fields="title:string, body:text"
Всичко работи добре, като таблицата се създава в моята база данни и свързаните файлове се появяват в директорията на моя проект. Въпреки това, когато навигирам до localhost/laravel/public/articles (моята директория), получавам следната грешка:
ErrorException (E_NOTICE)
HELP
Undefined offset: 1
Open: C:\xampp\htdocs\laravel\vendor\laravel\framework\src\Illuminate\Routing\Router.php
$route = $this->current();
$request = $this->getCurrentRequest();
// Now we can split the controller and method out of the action string so that we
// can call them appropriately on the class. This controller and method are in
// in the Class@method format and we need to explode them out then use them.
list($class, $method) = explode('@', $controller);
return $d->dispatch($route, $request, $class, $method);
Опитах да тичам
php artisan optimize --force
но това не помогна.
Някакъв съвет?