Did you Guys know how can I customize the Format of Custom Form Request responses?

|
amir881231 2021-10-07 17:38:38
Hi guys how can i sen reminder email for two people?
Siberfx 2021-10-07 17:57:00
with Mailer or Notification class ?
natghi2010 2021-10-07 18:17:25
I have an issue, when querying between 2 dates in laravel.
$data::whereBetween(‘date’,[Carbon::now()->subMonth(1)->format(‘Y-m-d’),Carbon::today()->format(‘Y-m-d’)])->get();
it returns everthing. what is it that im doing wrong?
natghi2010 2021-10-07 18:17:51
on the db, it is put in date format with values like ‘2021-07-01’
cayetanohosma 2021-10-07 18:24:15
I guess that you forgot to add as timestamp, not only the date
Habib_Mhamadi 2021-10-07 18:24:46
natghi2010 2021-10-07 18:17:25
I have an issue, when querying between 2 dates in laravel.
$data::whereBetween(‘date’,[Carbon::now()->subMonth(1)->format(‘Y-m-d’),Carbon::today()->format(‘Y-m-d’)])->get();
it returns everthing. what is it that im doing wrong?

You don’t need to call Carborn & neither date format

Habib_Mhamadi 2021-10-07 18:25:43
now()->subMonth(1), now()
natghi2010 2021-10-07 18:28:16
cayetanohosma 2021-10-07 18:24:15
I guess that you forgot to add as timestamp, not only the date

In the db it’s just normal date

natghi2010 2021-10-07 18:28:27
Habib_Mhamadi 2021-10-07 18:25:43
now()->subMonth(1), now()

Okay I’ll try that

Pro 2021-10-07 18:59:31
Last project for me was laravel 7.x how can i go back 😭
Sabr 2021-10-07 21:38:51
Anyone got a video/course recomendation on the file system in laravel ?
Sabr 2021-10-07 21:39:21
I strugled all day just to make an uploaded image show and i have no idea how it works
Nimit1906 2021-10-07 22:18:00
WellyRosadi 2021-10-07 09:01:07
laravel-snappy : https://github.com/barryvdh/laravel-snappy
browsershot : https://github.com/spatie/browsershot

Thank you dear

maudrico 2021-10-07 23:18:17
Folks who want one with laravel material, download it here 👇https://shrinke.me/Op2e7dI

Advanced Laravel | Database Notification #23 – YouTubeshrinke.me
Advanced Laravel Tutorials, Setup Database Notification.Become My Patron here https://goo.gl/NcvDQhYou can donate any amount via Paypal follow this link http…
datlechin 2021-10-07 23:39:22
laravel_discuss-96589.jpg
why i can’t add docs folder
itsAxton 2021-10-08 00:37:33
Hello
I have an array [‘name’,’surname’]
I want it to be like
{‘name’:true,’surname’:true}
How can I do it
itsAxton 2021-10-08 00:39:17
I tried to loop through the array and get the valeu and push it to another array like [array[$i] => true]
itsAxton 2021-10-08 00:39:28
But it’s now doing what I want
itsAxton 2021-10-08 00:39:48
Because it’s creating two jsons
itsAxton 2021-10-08 00:40:03
And insert them into an array
bryan_king 2021-10-08 01:09:24
itsAxton 2021-10-08 00:39:48
Because it’s creating two jsons

How ??

itsAxton 2021-10-08 02:13:27
Nvm solved it 🙂
poppyhusk 2021-10-08 02:49:45
rgiraon 2021-10-04 22:48:27
Hi Guys

I’m developing an API and my client wants to receive a API response with jsonapi pattern (https://jsonapi.org/examples/#error-objects-basics), as an array of objects, like this:

{
“errors”: [
{
“status”: “403”,
“source”: { “pointer”: “/data/attributes/secretPowers” },
“detail”: “Editing secret powers is not authorized on Sundays.”
},
{
“status”: “422”,
“source”: { “pointer”: “/data/attributes/volume” },
“detail”: “Volume does not, in fact, go to 11.”
},
{
“status”: “500”,
“source”: { “pointer”: “/data/attributes/reputation” },
“title”: “The backend responded with an error”,
“detail”: “Reputation service not responding after three requests.”
}
]
}

But the Custom Form Request returns the response as a a object, like this:

{
“message”: “The given data was invalid.”,
“errors”: {
“name”: [
“The name field is required.”
],
“email”: [
“The email field is required.”
],
“timezoneName”: [
“The timezone name field is required.”
],
“language”: [
“The language field is required.”
],
“password”: [
“The password must contain at least one symbol.”,
“The password must contain at least one number.”
]
}
}

Did you Guys know how can I customize the Format of Custom Form Request responses?

use validator:: make

flyingdragons 2021-10-08 05:13:23
Sabr 2021-10-07 21:38:51
Anyone got a video/course recomendation on the file system in laravel ?

https://stackcoder.in/posts/file-upload-in-laravel-php

File Upload In Laravel PHP | StackCoderStackCoder
In this article lets get our hands dirty by working on File Upload In PHP Laravel.
ho_gya_check_karlo 2021-10-08 08:24:48
Sabr 2021-10-07 21:38:51
Anyone got a video/course recomendation on the file system in laravel ?

https://www.phpprogrammers.in/post/how-to-upload-a-image-in-laravel

How to upload a image in laravel – phpprogrammers.inphpprogrammers
phpprogrammers share with you How to upload a image in laravel, how to upload image in laravel and store in database and folder, upload an image in laravel blade, upload an image in laravel blade, upload image using laravel, image upload example in laravel, how to upload image in laravel 6/7/8
S 2021-10-08 08:29:21
laravel_discuss-96603.jpg
Some times not getting special symbols and numbers
Yogesh121212 2021-10-08 08:49:53
Getting this error in android studio while running gradle build Java_home is not set and no java command could be found in the path
S 2021-10-08 08:53:58
Anyone reply for random password
Ankitkush 2021-10-08 09:01:26
laravel_discuss-96607.jpg

Yogesh121212 2021-10-08 09:29:51
Yogesh121212 2021-10-08 08:49:53
Getting this error in android studio while running gradle build Java_home is not set and no java command could be found in the path

Can anyone help with this issue

arunpyasi 2021-10-08 09:44:07
Ankitkush 2021-10-08 09:01:26

You’ll need to increase your php memory limit.

bryan_king 2021-10-08 10:30:36
Ankitkush 2021-10-08 09:01:26

Or check for a possible mem leak

bryan_king 2021-10-08 10:35:14
Yogesh121212 2021-10-08 09:29:51
Can anyone help with this issue

Ask in the Android group

bryan_king 2021-10-08 10:37:24
S 2021-10-08 08:53:58
Anyone reply for random password

You can use the Laravel’s string random and append random special chars

Ankitkush 2021-10-08 10:39:02
laravel_discuss-96623.jpg

|