Basically i have two tables. answers and choices . In my choices table, I got a column choices.value which is has values 0-4. My current query like this $answers = DB::table(‘answers’) …
Tag: laravel
How to retrieve data from database and able to edit in summernote editor?
I’m facing a problem and i couldn’t find a solution to solve it. My problem is that i have apply a plugin which called as ( Wysiwyg – summernote editor into my Laravel framework project ) . Everything works fine but when i click on the edit page, the data is unable to retrieve from the datab…
how to pass the variable to the input?
I have this code in my blade: @php $images_products = $product->images()->where(‘main_image’, 0)->get(); foreach ($images_products as $image) { $preloadedFiles[] = [ …
Access nested related objects with where clause in Laravel using Eloquent
I’m trying to get a list of tasks that are associated with a specific client, but there is no direct relation between a task and a client. I also need to filter those tasks based on task status and …
Show Image Response Null If image Is Not Submitted In Laravel
I’m Submitting data through postman in Laravel. I need to show the null value if data do not insert during submitting(In JSON response). But It did not show the image in response I need to show an …
Laravel : email send multiples times to one user
I want send email to many users in one time but in this case the mail is sending multiple times to one user it self. Try to email each person one time only(not spam the users) Its didnt work with …
Laravel Carbon, problem with getting the last ten days
I need to get the date of the last ten days. To do so I do this $start = Carbon::now()->subDays(10); for ($i = 0; $i addDays($i)->format(‘Y-m-d’); …
Resource controller destroy method not working
I have a button on my CRUD application that looks like this: id)}}”> When the user …
Laravel group by change keys
Hi I have reservations and their start times. Now I need to raport it. $monthlyAmounts = Reservation::all() ->groupBy(function ($proj) { return cdate($proj->…
How can I get response from guzzle in Laravel 5.3
I try like this : $client = new Client(); $res = $client->request(‘POST’, ‘https://api.orange.com/smsmessaging/v1/outbound/tel:+phone/requests/’, [ ‘headers’ => [ ‘…