Guys, is it possible to use carbon with js?

|
VimKanzo 2020-11-09 15:17:55
Here is the link: https://packagist.org/packages/helliomessaging/

packagist.org
The PHP Package Repository
VimKanzo 2020-11-09 15:18:46
From 5 to 8
2020-11-09 15:21:30
By using this package can we send sms?
2020-11-09 15:22:16
For free?
VimKanzo 2020-11-09 15:23:52
There is a free trial, after obviously you would have to pay to buy credit
2020-11-09 16:00:32
Hi guys I am beginner , I am getting this error ,please any one help me
2020-11-09 16:00:45
In PackageManifest.php line 131:

Undefined index: name

Script @php artisan package:discover –ansi handling the post-autoload-dump event returned with error code 1

Moses Ejim 2020-11-09 16:02:43
Try running:
composer install
composer dump-autoload
2020-11-09 16:05:18
Tried both ,getting same error
2020-11-09 16:05:28
Thank you for the reply..
MishalLeo 2020-11-09 16:30:59
Any one knows livewire how to use multiple select box
MishalLeo 2020-11-09 16:31:48
I want to use category and sub-category
MishalLeo 2020-11-09 16:33:02
laravel_discuss-58519.jpg
I have data like this
fsalesb 2020-11-09 16:43:12
hello guys, is it possible to use carbon with js?

<small>{{CarbonCarbon::create($apontamento->dataApontamento)->isoFormat(‘ddd D MMM’)}}</small>

fsalesb 2020-11-09 16:55:07
<small>{{CarbonCarbon::create(${e.dataApontamento})->isoFormat(‘D/M’) }}</small>
mazcvei 2020-11-09 16:58:42
fsalesb 2020-11-09 16:43:12
hello guys, is it possible to use carbon with js?

<small>{{CarbonCarbon::create($apontamento->dataApontamento)->isoFormat(‘ddd D MMM’)}}</small>

you can use blade directives to pass php variables to js

fsalesb 2020-11-09 16:59:01
how? rsrs
mazcvei 2020-11-09 16:59:07
<script>
var date = {{$my_date}} ;
<script>
fsalesb 2020-11-09 16:59:18
perfect
mazcvei 2020-11-09 16:59:40
the js code must be in a .blade file
fsalesb 2020-11-09 16:59:59
yes yes
fsalesb 2020-11-09 17:04:21
error
fsalesb 2020-11-09 17:04:44
laravel_discuss-58530.jpg

fsalesb 2020-11-09 17:05:02
laravel_discuss-58531.jpg

mazcvei 2020-11-09 17:05:09
var date = ‘{{$my_date}}’ ¿?
mazcvei 2020-11-09 17:06:02
which returns the Cabon instruction …?
mazcvei 2020-11-09 17:06:18
string ?
fsalesb 2020-11-09 17:07:28
mazcvei 2020-11-09 17:06:18
string ?

lets see, but it returns a date from the database

mazcvei 2020-11-09 17:09:26
use ‘{{…}}’
fsalesb 2020-11-09 17:09:27
laravel_discuss-58537.jpg

fsalesb 2020-11-09 17:09:57
laravel_discuss-58538.jpg

fsalesb 2020-11-09 17:10:07
nothing
mazcvei 2020-11-09 17:10:59
try JSON.parse, var data= JSON.parse(“{{ json_encode($my_date) }}”);
mazcvei 2020-11-09 17:12:10
or data = {!! json_encode($my_data) !!};
mazcvei 2020-11-09 17:12:48
or data = @json($my_data);
fsalesb 2020-11-09 17:13:40
I’ll try
fsalesb 2020-11-09 17:15:28
laravel_discuss-58544.jpg

mazcvei 2020-11-09 17:16:32
console.log({{Carbon…}} ¿?
fsalesb 2020-11-09 17:16:44
i’m trying to import the carbon with my rendering
fsalesb 2020-11-09 17:16:54
mazcvei 2020-11-09 17:16:32
console.log({{Carbon…}} ¿?

I’ll try

fsalesb 2020-11-09 17:18:44
nothing
mazcvei 2020-11-09 17:19:19
What show the console.log ?
fsalesb 2020-11-09 17:19:53
laravel_discuss-58551.jpg

mazcvei 2020-11-09 17:20:10
or
@ php
$data = Carbon…
@ endphp

var data = {{ $data}}

mazcvei 2020-11-09 17:20:28
token?
fsalesb 2020-11-09 17:21:35
mazcvei 2020-11-09 17:20:10
or
@ php
$data = Carbon…
@ endphp

var data = {{ $data}}

I’ll try

mazcvei 2020-11-09 17:24:51
laravel_discuss-58555.jpg
it’s work 🙁
fsalesb 2020-11-09 17:28:47
I did it, the problem now is
fsalesb 2020-11-09 17:30:05
laravel_discuss-58560.jpg
how I pass the “e.dataApontamento” map variable inside the carbon
fsalesb 2020-11-09 17:31:38
Mario br?
|