Anyone have experience in integrating bluedart api in php?

|
SureshLaraDev 2021-04-20 17:29:01
GistOf 2021-04-20 17:16:51
It looks like your database connection has nothing to do with your .env settings. You need to check your config/database.php

Lemme check it bro

DesolatorMagno 2021-04-20 17:34:39
Remember to clear cache, jic.
noobmaster622 2021-04-20 17:44:17
Anyone successfully implemented parsley. Js in laravel mix?
noobmaster622 2021-04-20 17:45:18
Iam getting an error parsley isnot a function
noobmaster622 2021-04-20 17:45:43
When i add parsley by adding it to the dom api it works
noobmaster622 2021-04-20 17:45:59
When initializing through js it doesn’t
noobmaster622 2021-04-20 17:47:23
laravel_discuss-77339.jpg

noobmaster622 2021-04-20 17:47:52
laravel_discuss-77340.jpg

FH 2021-04-20 18:14:15
noobmaster622 2021-04-20 17:47:52

javascript code in laravel Group?!

WebDev 2021-04-20 18:17:30
.
.
.
.
.
.
.
.
.
noobmaster622 2021-04-20 18:34:23
FH 2021-04-20 18:14:15
javascript code in laravel Group?!

Its related to laravel mix.

2021-04-20 20:00:53
Hello All, What’s your opinion to use MongoDB with Laravel for e-commerce site?
tink2100 2021-04-20 23:23:21
Anyone have experience in integrating bluedart api in php?
tink2100 2021-04-20 23:24:27
Encountered problem. Not sure where to start.
It seems I can’t find any guidance on how to start on the main page.
Relaxed Guy 2021-04-20 23:33:35
Swagna Andy:
Guys

Am passing an array object to the script in the blade in order to be displayed on the graph

How do I extract array from this array object I have passed it as ..

An array from the controlller

pepelopez96 2021-04-21 00:02:05
array object ? a Collection ? you can use $collection->toArray();
Relaxed Guy 2021-04-21 00:03:39
$myData = new array();

for($i=0; $i<7; $i++){

$date = Carbon::now()->AddDays($i)->toDateString();

$getCount = MyModel::whereDate(‘visit_date’,’=’,$date)->count();

$std = new stdClass();
$std->date = $date;
$std->count = $getCount;

$myData[] = $std;

}

Relaxed Guy 2021-04-21 00:04:45
@pepelopez96 … from this… I want to pass to script in the view then display the values extracted from it on a graph
Relaxed Guy 2021-04-21 00:09:07
Anyone??
pepelopez96 2021-04-21 00:12:06
well, let me see…
pepelopez96 2021-04-21 00:15:10
you need to send $myData to the view

in the return of the function send this array…

return view(‘path.to.view’, compact(‘myData’));

pepelopez96 2021-04-21 00:16:14
you can also send it in array…
return view(‘path.to.view’, [‘myData’ => $myData]);
Relaxed Guy 2021-04-21 00:17:25
I want the script part
Relaxed Guy 2021-04-21 00:17:52
<script>
Relaxed Guy 2021-04-21 00:18:40
Var mydata = {{!!$myData!!}};
Relaxed Guy 2021-04-21 00:18:54
Not working
pepelopez96 2021-04-21 00:19:11
json_encode($myData);
Relaxed Guy 2021-04-21 00:19:22
That one not workin
Relaxed Guy 2021-04-21 00:19:33
Too
pepelopez96 2021-04-21 00:20:13
you are using {{}}… it is { !!json_encode($myData) !!}
Relaxed Guy 2021-04-21 00:20:34
pepelopez96 2021-04-21 00:20:13
you are using {{}}… it is { !!json_encode($myData) !!}

Yes

pepelopez96 2021-04-21 00:20:36
not double curly braces
pepelopez96 2021-04-21 00:21:02
just one per side…
Relaxed Guy 2021-04-21 00:21:08
Let me try
Relaxed Guy 2021-04-21 00:21:28
So how do I extract arrays for the array object
|