Budget: 500 UAH Deadline: 1 day
There is nothing difficult in the submitted tasks - in the comments to everything answered
Budget: 500 UAH Deadline: 1 day
There is nothing difficult in the submitted tasks - in the comments to everything answered
Budget: 1000 UAH Deadline: 1 day
A good day.
I am specializing in Laravel, I work with the front.
Examples of portfolio.
Budget: 1000 UAH Deadline: 1 day
Good morning, I have experience working with Laravel, I could do it.
...
Limit to symbols, the shortness of the sister of talent?
Budget: 2000 UAH Deadline: 2 days
Good day .
I have experience working with Laravel and ready to perform the task quickly and quality.
Попробовал, подсвечиваются сразу все меню постов
в базе еще есть post_id поле. Спроси - может как-то с post_id связать ?
попробуй тогда сравнивать текущий урл с роутами:
// Получить текущий URL без строки запроса
url()->current();
// Получить текущий URL, включая строку запроса
url()->full();
Дмитрий, спасибо, Ваш способ помог.
Предлагаю за решению этой задачи двести грн + оцените, пожалуйста, фикс с поиском.
Готовы работать пошагово, есть еще задачи.
не совсем понял что нужно в поиске, с запросами ->orWhere нужно быть очень осторожно. Если в методах translatedIn() или published() есть условие ->where, то оно уже работать не будет!!!
нужно объединять условия в группы типа:
->where(function ($query) {$query->where('votes', '>', 100)
->orWhere('title', '=', 'Admin');
})
Нужно сделать поиск по постам по трем полям в базе
->whereTranslationLike('title', "%{$search}%")->orWhereTranslationLike('short_text', "%{$search}%")
->orWhereTranslationLike('text', "%{$search}%")
запрос именно для поиска (т.е. после выборки активностей и прочих ограничителей) будет выглядеть так:
->where(function ($query) use ($search) { $query->where('title','LIKE', "%{$search}%") ->orWhere('short_text','LIKE', "%{$search}%") ->orWhere('text','LIKE', "%{$search}%"); })
7 proposals 29 July
Website Development 26 proposals 28 July
System & Network Administration 26 proposals 25 July
Website Development 53 proposals 21 July
Content Management 27 proposals 20 July