Stanislav Pochepko2016-07-25 22:48:03
Stanislav Pochepko, 2016-07-25 22:48:03

After upgrading to laravel 5.2 Class cookie does not exist?

In general, I updated according to the guide to 5.2 and now I get an error

ReflectionException in Container.php line 734:
Class cookie does not exist

What's wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Станислав Почепко, 2016-07-26

Оказывается необходимо было обновить структуру файлов конфигов всех и app/http/Kernel.php . Также вставил дефолтный набор миддлеваров из репозитория лары в config/app.php (Собственно вот это и решило данную проблему).

Andrzej Wielski, 2016-07-26

Are you sure you have the Cookie class connected in your controller?
Since version 5.1 this is a mandatory condition.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question