Category : laravel-5

intento agregar esa fila con todos [ 0, 0,0,0,0,0,0,] pero cuando intento guardar no guarda y sale este error. enter image description here enter image description here enter image description here if (isset($request->journal_entry_id)) { foreach ($request->journal_entry_id as $index => $journal_entry_id) { $history = JournalEntryHistory::where(‘journal_entry_id’, ‘=’, $journal_entry_id) ->where(‘client_id’, ‘=’, $client->id) ->where(‘year’, ‘=’,$request->year) ->groupBy(‘order’) ->select(DB::raw(‘SUM(value) as value’)) ..

Read more

I´m traying to create function with function onClick(parameter) that call one function and redirect to one route in laravel, but my problem it´s that this route have 3 parameter. Route::get(‘llamadas/estadisticas/pasadas/{operator}/{fromDate},{toDate}’, ‘[email protected]’)->name(‘llamadas.estadisticas.pasadas’); my function it´s: function redirectFunction(operator) { let fromDate = $("#fromDate").val(); let toDate = $("#toDate").val(); var yearStart = fromDate.substring(0,4); var monthStart = fromDate.substring(5,7); var dayStart ..

Read more

I want to display json data into the blade file . I am getting data in json format. I am not getting how to convert json data and display Below is my contoller : $item = Item::where(‘active_status’, 1)->where(‘status’, "1"); $formats = DB::table(‘items’)->select(‘format’)->distinct()->get(); $fps = DB::table(‘items’)->select(‘fps’)->distinct()->get(); return view(‘frontend.pages.explore’, compact(‘data’,’formats’,’fps’)); Blade file as follows: <div class="filter-btn"> {{ ..

Read more

How can I send a notification without having to use the user model? public function SendSeguimiento(Request $request){ $toUser = Clientes::find(2); Notification::send($toUser, new Seguimiento($toUser)); // $pageName = ‘widgets’; return redirect()->route("clientes"); } i try to send a notification to the email of the table ‘Clientes’ in row 2 database: Error: help pls Sourc..

Read more

I am tryin to parse date format using laravel carbon. Here I tried dd(Carbon::parse(‘2021-10-12T09:20:27:915 GMT+0600’)->format(‘Y-m-d h:i:s’)); It shows DateTime::__construct(): Failed to parse time string (2021-10-12T09:20:27:915 GMT+0600) at position 19 (:): Unexpected Thanks in advance Sourc..

Read more

$tickets = Ticket::select("tickets.cust_id","tickets.ticket_id","tickets.category_id","tickets.subject","tickets.priority","tickets.message","tickets.status","tickets.createdticket","tickets.last_reply","tickets.closing_ticket","tickets.auto_close_ticket","tickets.created_at","tickets.updated_at","groups_categories.group_id","groups_users.users_id") ->leftJoin(‘groups_categories’,’groups_categories.category_id’,’tickets.category_id’) ->leftJoin(‘groups_users’,’groups_users.groups_id’,’groups_categories.group_id’) ->get(); Above code is my query. I want the show the ticket according the login users Sourc..

Read more

Hey there i am new to laravel and i am working on a project where i saved multiple image in a single coloumn where image is seperated with a coloumn but i am unable to fetch images my data insert code is below $AllVehicleImage=""; if($request->hasFile("VecImages")) { $files=$request->file("VecImages"); foreach($files as $file) { $imageNameV=time().’_’.$file->getClientOriginalName(); $request[‘VecImages’]=$imageNameV; $file->move(public_path("/assets/Resources/Images/DynamicImage/Products/") , ..

Read more

I’m trying to store an encrypted text in my database, but I have no idea how to decrypted it back. I’ve tried $salt = ‘c0d4#’; $pepper =’nsa-cia-fbi’; // secret text $pwd_peppered = hash_hmac("sha256", $salt, $pepper); $pwd_hashed = password_hash($pwd_peppered, PASSWORD_ARGON2ID); echo($pwd_hashed); // right password hash $pwd_hashed = ‘$argon2id$v=19$m=65536,t=4,p=1$QnVpT1Rqay5WSmIvRW1HZg$rgx+DWPl5bvjwlr7plnOjnE1Sf8lim01pwb6lHGzEaU’; //wrong password hash : for testing purposes $pwd_hashed_wrong ..

Read more

When running composer update it works until @php artisan package:discover I then got: In ProviderRepository.php line 208: Class ‘BarryvdhCorsServiceProvider’ not found Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1 I got BarryvdhCorsServiceProvider class defined in app.php So php artisan does not work at all. So what could be the problem? ..

Read more

Iknow this question is not asked well manner so i am sorry i have sql query this one `SELECT c.* FROM merchantlink m, company c, merchantlinkrelation mlr WHERE (m.initiator_user_id = c.owner_user_id AND m.responder_user_id = 86 AND mlr.ptype=’dealer’) OR (m.initiator_user_id = 86 AND m.responder_user_id = c.owner_user_id AND mlr.ptype = ‘dealer’) OR (m.initiator_user_id = c.owner_user_id AND c.owner_user_id=86 ..

Read more

I’ve made a blog template but I having trouble making the routes. When I click on the link, it should redirect me to the article page. Instead it just redirects me to the same page/same exact location. Here’s my code: <section id="about" class="ts-block" > <div id="cards_landscape_wrap-2"> <div class="container"> <div class="row"> @foreach($blogs as $blog) <div class="col-lg-4"> ..

Read more