Alex
Alex
@adelf Ну как я понимаю в DDD подходе есть сложившиеся рекомендации. Инфраструктура, Сервисы, Домен и т.к.
@adelf Спасибо !Насколько это хороший пример для DDD https://github.com/shin1x1/laravel-ddd-sample ? Мне понравилось что там отдельная сущность Item и при выборке с БД всё записывается в этот обьект. А не понравилось...
> Same thing happens here. It looks like connection to WS works fine, but if I send any message to the socket - it automatically closes the connection. Everything is...
> Я подключаюсь к веб-сокету из приложения Android с помощью библиотеки okhttp. Я пытался найти журналы для отладки, когда какой-то пользователь автоматически отключается. Приложение для Android okhttp показывает это в...
@shin1x1 Thanks! If I need to do creation in code somewhere, in a controller for example, is this a good solution? $item = new Item( ItemId::of($this->id), $this->name, ItemPrice::of($this->price), Stock::of($this->stock) );...
@shin1x1 [https://github.com/shin1x1/laravel-ddd-sample/blob/master/packages/Acme/Shop/Infrastructure/Eloquents/EloquentItem.php](url) Has a method - toDomain(), I will need to create a reverse method to load the entity into the model? Where to create it correctly ?
@shin1x1 Hi, can you tell me how to correctly transform an entity into a eloquent model ? We have method toDomain, which converts the model to entity. To save the...
> Привет > > Чтобы это работало в Safari, PWA необходимо добавить на домашний экран (он же A2HS), это активирует [Push API](https://developer.mozilla.org/en-US/docs/Web/API/Push_API) . > > Второе требование, которое мне пока...