Код: Выделить всё
return Post::getAll();
Код: Выделить всё
Non-static method Post::getAll() should not be called statically, assuming $this from incompatible context
Код: Выделить всё
public function getAll() {
return $posts = $this->all()->take(2)->get()
}
Подробнее здесь: https://stackoverflow.com/questions/183 ... en-invokin
Мобильная версия