You have any way to see the error bag in the front?

|
Ikram San 2020-04-01 03:53:13
laravel_discuss-31647.jpg

Ikram San 2020-04-01 03:53:17
like here
Ikram San 2020-04-01 03:53:28
and what it blog ?
DesolatorMagno 2020-04-01 03:54:38
you have see the error bag in the front?
DesolatorMagno 2020-04-01 03:55:25
in the bag you got the {entity}.{error}
DesolatorMagno 2020-04-01 03:56:55
I dunno why you need to use validateWithBag, but i guess you already read the documentation and it is the best action to take for your use case.
Ikram San 2020-04-01 03:57:21
i can see the error just by validate $request->validate([
‘nom’ => ‘required|alpha|between:5,20′,
’email’ => ‘bail|required|email’,
‘message’ => ‘bail|required|max:250’
]); but i didn’t understand this
Ikram San 2020-04-01 03:57:38
this validatewithbag
DesolatorMagno 2020-04-01 03:58:36
Ikram San 2020-04-01 03:53:13

I think that text explain it really well, it is just to specify the error bag in wich the error will be put.

Ikram San 2020-04-01 03:58:36
noo i want just to understand this part
DesolatorMagno 2020-04-01 03:59:01
Imagine that you make a validation to a field x, but you want to see a error in the field y.
Ikram San 2020-04-01 03:59:32
yeah but ‘blog’ means the error what i want to send..
DesolatorMagno 2020-04-01 03:59:44
yes..
Ikram San 2020-04-01 04:00:05
emm
Ikram San 2020-04-01 04:00:38
can you give me an example cuz i try it but it deosn’t work
DesolatorMagno 2020-04-01 04:01:14
You have any way to see the error bag in the front?
DesolatorMagno 2020-04-01 04:01:30
like debugbar or clockwork?
Ikram San 2020-04-01 04:01:33
i’ll show u what i did
Ikram San 2020-04-01 04:03:53
laravel_discuss-31665.jpg
for exaple here if i want to send a specify error like ‘it’s not okey ‘ . i cn remplace blog in th example by it’s okey
DesolatorMagno 2020-04-01 04:04:22
If you want a specific error you use message
DesolatorMagno 2020-04-01 04:04:38
use a form request for that
DesolatorMagno 2020-04-01 04:05:17
laravel_discuss-31670.jpg

Ikram San 2020-04-01 04:05:34
ys but what about validatewithbag how can i use it
DesolatorMagno 2020-04-01 04:05:47
Is to specifi the bag, that’s all.
Ikram San 2020-04-01 04:06:01
DesolatorMagno 2020-04-01 04:05:17

oki i’ll try this

SandyLeks 2020-04-01 07:01:57
I have a little question.
The validations must be done in the controller or in the model?
SrEeRaG 2020-04-01 07:27:03
Controller
SrEeRaG 2020-04-01 07:27:15
I think so
mhd_arffnn 2020-04-01 08:40:05
guys i want a cron to run every week only on sunday at 12 am
mhd_arffnn 2020-04-01 08:40:19
->weeklyOn(7, ’00:00′); is this correct?
H_Bakhtar 2020-04-01 08:42:21
SrEeRaG 2020-04-01 07:27:03
Controller

can be in controller and out of controller that you should make a request for that controller not in model

kilobyte24 2020-04-01 08:46:58
halo, can anyone help me how to make login with email registration?
Akshay 2020-04-01 08:53:54
Auth::check() is showing null value what may be the reasone
Akshay 2020-04-01 08:54:08
I am try to acess the login detalis
2020-04-01 08:56:00
Good morning
I’m new to the band and I want to learn laravel
Can you help me please ?
H_Bakhtar 2020-04-01 08:58:31
2020-04-01 08:56:00
Good morning
I’m new to the band and I want to learn laravel
Can you help me please ?

https://laravel.com/docs/7.x

2020-04-01 08:59:00
H_Bakhtar 2020-04-01 08:58:31
https://laravel.com/docs/7.x

Thank you bro

2020-04-01 09:23:51
Anybody help me
Gowtham_Boopathiraj 2020-04-01 09:24:10
2020-04-01 09:23:51
Anybody help me

What help

2020-04-01 09:24:25
I am working on laravel project
2020-04-01 09:24:41
But I dnt knw laravel
2020-04-01 09:24:55
Much
Gowtham_Boopathiraj 2020-04-01 09:25:59
Ok
Gowtham_Boopathiraj 2020-04-01 09:26:02
What issue
Gowtham_Boopathiraj 2020-04-01 09:26:07
Where r u from
Gowtham_Boopathiraj 2020-04-01 09:39:36
Laravel or other
2020-04-01 09:40:00
laravel_discuss-31699.jpg

2020-04-01 09:40:05
Laravel
Gowtham_Boopathiraj 2020-04-01 09:40:24
Check log file
2020-04-01 09:41:13
Log file kyn dekhnege
|