ЕК
Size: a a a
ЕК
S
S
П
П
S
S
нc
if( Menu::where('id', 1)->first() ) {
$menu_top_items = Menu::where('id', 1)
Б
if( Menu::where('id', 1)->first() ) {
$menu_top_items = Menu::where('id', 1)
Б
нc
'menu_top_items_children' => collect($item->children->all())
а вот это зачем? У тебя коллекция, ты отдаешь массив и снова в коллекцию оборачиваешьMK
SQLSTATE[42601]: Syntax error: 7 ERROR: zero-length delimited identifier at or near """"
LINE 1: create table "" ("id" serial primary key not null, "migratio...
^ (SQL: create table "" ("id" serial primary key not null, "migration" varchar(255) not null, "batch" integer not null))
нc
SQLSTATE[42601]: Syntax error: 7 ERROR: zero-length delimited identifier at or near """"
LINE 1: create table "" ("id" serial primary key not null, "migratio...
^ (SQL: create table "" ("id" serial primary key not null, "migration" varchar(255) not null, "batch" integer not null))
нc
@if(count($item->children) > 0 )
а еще это можно заменить на children->isNotEmpty()
MK
MR
нc
create table ""
нc
нc