Skip to content

How to use like with whereIn in laravel

i am using laravel 8 and want use like query with whereIn. it’s my query: $details = explode(” “, $request->detail); $doctors->whereIn(‘specialities.title’, ‘like’, ‘%’ ….

Database Announcements Table – Add Excutable Code Within

I have a database containing over 1,000 item information and I am now developing a system that will have this check the API source via a regular Cron Job adding new entries as they come. Usually, but not always the case, when a new item is released, it will have limited information, eg; Image and name only, m…

how to solve CORS preflight error in rest api

We have two sites on one server. We created a rest api and the api backend codes are located in Site1.com. On the second site, there is a frontend that sends requests to the APIs of the first site But …

PHP Bold String Before Specific Char

I have product title with this standard: “Brand name – item title” and I need to transform this string like this: Brand name item title So I need 2 things to handle: replace the first dash in the string with “br” and apply bold to the text before the first dash. I have reached on…