skip to Main Content

searchig in kibana Discover by KQL syntax – Laravel

I have created a middleware in laravel! like below <?php namespace AppHttpMiddleware; use CarbonCarbon; use Closure; use IlluminateHttpRedirectResponse; use IlluminateHttpRequest; use IlluminateHttpResponse; use IlluminateSupportFacadesLog; use phpDocumentorReflectionTypesString_; class SystemActivityLogger { /** * Handle an incoming request. * * @param IlluminateHttpRequest $request…

VIEW QUESTION

How to print date without time in laravel?

The following query is giving me time with date but i need only date .How do I do? $data = DB::table('kahanighar_ivr.kahani_cdr') ->select(DB::raw('count(*) as a'),'dst','calldate as ibdate',DB::raw('"kahani" as ser')) ->where('dst','like','%7787%') ->wheredate('calldate','>=',"$request->start") ->wheredate('calldate','<=',"$request->end") ->groupBy('dst')->groupBy('calldate') ->union(DB::table('kids_ivr.kids_cdr') ->select(DB::raw('count(*) as a'),'dst','calldate as ibdate',DB::raw('"kids" as ser'))…

VIEW QUESTION

How compare two times in Carbon? – Laravel

Here are two times in db in time format: "10:00:00" and "11:00:00". I have tried to compare them: $starttime = Carbon::parse($icomingdate['"starttime']); $endtime = Carbon::parser($icomingdate["endtime"]); if($starttime + 30 > $endtime && $endtime <= '23:59:00') { echo "Greated then start time +…

VIEW QUESTION

Multiple image upload approach laravel

What's the best approach to store multiple images in database? Upon browsing and searching for solution and approaches I found 2 options first one is take the file name and concatenate and separate them using either comma or | but…

VIEW QUESTION

color whole td column based on properties of th – Laravel

So I have this table: <table> <thead> <tr> <th style="width: 40%; text-align: center; vertical-align: center;">Nr.<br> crt.</th> <th style="font-weight: bold; width: 210%; height: 25; text-align: center; vertical-align: center;">Asistent</th> <th style="font-weight: bold; width: 210%; height: 25; text-align: center; vertical-align: center;">Ambulantier</th> <th style="text-align:…

VIEW QUESTION

Undefined variable: image while update in laravel

public function update_room_detail(Request $request) { $request->validate([ 'room_type' => 'required', ]); if($images = $request->file('room_image')) { foreach($images as $item): $var = date_create(); $time = date_format($var, 'YmdHis'); $imageName = $time.'-'.$item->getClientOriginalName(); $item->move(public_path().'/assets/images/room', $imageName); $arr[] = $imageName; endforeach; $image = implode("|", $arr); } else {…

VIEW QUESTION
Back To Top
Search