Why BETWEEN ‘2020-02-22 00:00:00’ AND ‘2020-02-22 23:59:59’ is working (getting Data)? AND why BETWEEN ‘2020-02-22’ AND ‘2020-02-22’ is not working (Not getting Data)? Edited: Got it. I forgot to …
Tag: laravel
Websocket chat in Laravel isnt real time
I am creating a chat in Laravel Websocket i followed a youtube tutorial and the message goes to the other user they can talk with each other but i need to reload the page to get the message that was sent,its not real time.At the console before i send a message it says this error: Failed to load resource: the
Google Places Nearby API Success 200, but returns “INVALID_REQUEST” in Laravel
I’m trying to make an iterative crawler for the Google Places API. As anyone who has used their API knows, the response only contains 20 results per page and I’m attempting to get the full list of results so I’ve created an loop which will execute a function if the next_page_token field is p…
Laravel 5.5 How to get eloquent relationship count?
I have three tables as define below User id name Post id text user_id Comments id text post_id This is User model User.php class User { public function post() { return $this-&…
How to display departments as nodes in Laravel
I have a table i db ‘departments’ .I want it do display it with jstree.I have a parent_id,the root node that is 0 and another that is 1 .I have problems in displaying them in a parent and child …
How to build this Laravel Eloquent Query
I want to build a nested array from a simple table with Laravel Eloquent, but i couldn’t. So basically below is a snap shot of my table and this is the array I want to build
Email notification when disk drive reaches a certain percentage? (Laravel)
I’d love to be able to monitor my disk drives automatically with email notifications. I’m using Laravel (and therefore it should be possible to schedule a task to check) this but I’m unsure how to go …
Laravel join(): Argument must be an array
I’m trying to read 2 tables in my view. Now I am trying to join an other table like this in my sslcontroller.php
Laravel table relationship to pivot table
I’m confused on how to get my model setup in laravel with a table that is connected to a pivot table. Here’s the problem Say I have Relationship between the tables are different areas type belongs to different locations. i.e: beach, 25m pools, kids pools, bbq, etc area_test is connected to the piv…
default value for file input form when update image in laravel 5.8
I’m Using Laravel 5.8, I’m trying to make update data in laravel, the data is contained images, when the form update did not get a new image, laravel displays an error, that the image is null, can I …