← prev | next →
DesolatorMagno 2020-04-15 20:41:27
There is a modified that work after save.
DesolatorMagno 2020-04-15 20:42:55
And update() check if the model is dirty, if true it save.
Triazza 2020-04-15 20:44:16
@DesolatorMagno i’m talking about observers.
There are the “pre-hook” observers (as updating, creating, deleting etc)
and the “post-hook” observers (updated etc).
I’d like to understand if isDirty() works on the post-hook observers
DesolatorMagno 2020-04-15 20:55:24
No, but You can use modified in the post hook.
DesolatorMagno 2020-04-15 20:55:29
Is in the documentation.
Triazza 2020-04-15 20:56:09
ok, thank you @DesolatorMagno
DesolatorMagno 2020-04-15 20:56:41
In updating it work, but updated it alreaded happened and the model is now clean.
Marvixino 2020-04-15 23:02:03
Any idea why this return wrong DateTime Carbon::now(new DateTimeZone(‘Asia/Kuwait’))
Marvixino 2020-04-15 23:02:49
Marvixino 2020-04-15 23:02:03
Any idea why this return wrong DateTime Carbon::now(new DateTimeZone(‘Asia/Kuwait’))
date from the host is right
Marvixino 2020-04-15 23:06:26
Marvixino 2020-04-15 23:02:49
date from the host is right
The strange thing that saving data in the DB, the created_at is right, but on the query is returning wrong time!
Chinar08 2020-04-15 23:31:54
sahilbalgotra 2020-04-09 16:38:10
Now what if i have to get contact us data + offer page data
Use wherein(pagedata,[both name])
Chinar08 2020-04-15 23:34:22
aayush1485 2020-04-09 19:25:21
Hey all of you ,hope you all are doing well, …I want to know from where to i clearly understand and learn the eloquent relationship in laravel any reference ? And is it worth to take a knowledge of it ? Plz answer thanks in advance 🙏
Bitfumes and coderstape videos
Chinar08 2020-04-15 23:34:34
YouTube channel
Chinar08 2020-04-15 23:35:21
godwar53 2020-04-07 12:37:07
#ask
is it possible insert data in table many to many relationship?
Which table
Chinar08 2020-04-15 23:36:58
Marvixino 2020-04-15 23:06:26
The strange thing that saving data in the DB, the created_at is right, but on the query is returning wrong time!
Query screen shot while query did you use carbon ?
Marvixino 2020-04-15 23:40:35
Marvixino 2020-04-15 23:40:35
EmailVerification::where([ [ ‘token’, ‘=’, $token ], [ ‘pin’, ‘=’, $pin ] ])->first();
Marvixino 2020-04-15 23:41:32
Marvixino 2020-04-15 23:41:46
DB::table(’email_verifications’)->select(‘*’)->get();
Terryup 2020-04-15 23:42:32
Marvixino 2020-04-15 23:43:25
Chinar08 2020-04-15 23:36:58
Query screen shot while query did you use carbon ?
and this the time on the dockers
Marvixino 2020-04-15 23:43:28
Chinar08 2020-04-15 23:46:47
Marvixino 2020-04-15 23:41:32
Out of both image which image has correct time saved ?
Marvixino 2020-04-15 23:47:21
Marvixino 2020-04-15 23:41:32
this has the right time
Marvixino 2020-04-15 23:59:00
Marvixino 2020-04-15 23:47:21
this has the right time
This return the right time
$isValidated->created_at->format(‘Y-m-d H:i:s’)I need to use Carbon to check of record expired, and $date = new Carbon;
$date->addHours() return this 2020-04-15T22:56:53.291035Z
How to add 1 hour to created_ad and compare to current time!
Chinar08 2020-04-16 00:09:36
Marvixino 2020-04-15 23:59:00
This return the right time
$isValidated->created_at->format(‘Y-m-d H:i:s’)I need to use Carbon to check of record expired, and $date = new Carbon;
$date->addHours() return this 2020-04-15T22:56:53.291035Z
How to add 1 hour to created_ad and compare to current time!
$formated_created_at = $isValidated->created_at->format(‘Y-m-d H:i:s’);
$new_created_at = $formated_created_at->addHours();
Now you can compare
Chinar08 2020-04-16 00:10:03
New created at with carbon now with timezone
Budur 2020-04-16 00:12:51
How to learning laravel ?
Budur 2020-04-16 00:13:28
If you know channel or good book help me
Z_Yamin 2020-04-16 00:13:31
start reading
Marvixino 2020-04-16 00:13:43
Chinar08 2020-04-16 00:09:36
$formated_created_at = $isValidated->created_at->format(‘Y-m-d H:i:s’);
$new_created_at = $formated_created_at->addHours();
Now you can compare
Call to a member function addHours() on string
I’m testing this Carbon::parse($isValidated->created_at)->addDay()->isPast();
Yet, is giving false … source
https://coderwall.com/p/lrooqg/verify-an-expiration-date
Verify an expiration date (Example) –
CoderwallA protip by eresendez about laravel and php.
Marvixino 2020-04-16 00:26:58
Marvixino 2020-04-16 00:13:43
Call to a member function addHours() on string
I’m testing this Carbon::parse($isValidated->created_at)->addDay()->isPast();
Yet, is giving false … source
https://coderwall.com/p/lrooqg/verify-an-expiration-date
LOL .. this is messed up my mind.. Carbon::parse($isValidated->created_at)->addDay()->isPast();is it right, it should return false 😁
godwar53 2020-04-16 04:37:21
Chinar08 2020-04-15 23:35:21
Which table
already solve sir
Bhavik F 2020-04-16 05:01:37
Does anyone have worked on web deployment tool in laravel
Siberfx 2020-04-16 06:24:21
What do you mean?
Bhavik F 2020-04-16 06:26:01
Web based deployer
2020-04-16 07:32:13
You mean docker?
Patricklab 2020-04-16 08:08:26
Laravel developer needed to join put team must have worked with nodejs and vue js as well
sadeqi125 2020-04-16 08:57:25
i whant a jquery bootstrap multiple file in video uploader and svae with ajax request in laravel
2020-04-16 09:08:10
sadeqi125 2020-04-16 08:57:25
i whant a jquery bootstrap multiple file in video uploader and svae with ajax request in laravel
So, whats the problem. There arr various blogs which have explained the same.
j_4887 2020-04-16 09:08:56

hellow guys am new to laravel and I face this problem help please
j_4887 2020-04-16 09:09:25

here are my routes
j_4887 2020-04-16 09:09:55

here is the controller
j_4887 2020-04-16 09:10:16
Help me Guys
j_4887 2020-04-16 09:10:17

here is the form to edit
sadeqi125 2020-04-16 09:10:25
2020-04-16 09:08:10
So, whats the problem. There arr various blogs which have explained the same.
i use blueimp-file-upload and i want get all form data and plugins content and submit form content with ajax in laravel controller
sadeqi125 2020-04-16 09:10:48
my prolome is how i get npm i blueimp-file-upload file content
sadeqi125 2020-04-16 09:11:05
this is plugins link
sadeqi125 2020-04-16 09:11:06
https://openbase.io/js/blueimp-file-upload
blueimp-file-upload: documentation, code, playground & insights – Openbase –
openbase.ioGet started with blueimp-file-upload – with documentation, examples, API reference, source code, JS playground, issues, versions, and more
2020-04-16 09:12:59
j_4887 2020-04-16 09:08:56
hellow guys am new to laravel and I face this problem help please
You are using resource controller? Check out the routes using route:list command
← prev | next →