Can anyone tell can we use resource route in laravel yajra datatable?

|
Manalalsubaei 2022-09-05 09:36:04
laravel_discuss-136959.jpg

Manalalsubaei 2022-09-05 09:36:04
laravel_discuss-136958.jpg

Manalalsubaei 2022-09-05 09:36:41
DB doesn’t update?
h_a_r_s_a_l 2022-09-05 10:23:40
h_a_r_s_a_l 2022-09-05 09:17:41
laravel_discuss-136955.jpg
How to solve this one

Please help

epaphradito 2022-09-05 11:25:42
Sai Prakash 2022-09-05 05:20:32
laravel_discuss-136938.jpg

Do you have a field named aadhaarFiles in your form?

I thought aadhaarFiles is a fold to you wanted to store the files.

If you want t to first check whether the files is there, use

$request->hasFile(‘best_thing’)…

Beta_Tech 2022-09-05 12:15:01
iamFinnz 2022-09-05 06:44:15
laravel_discuss-136946.jpg

The code is correct

Beta_Tech 2022-09-05 12:15:26
iamFinnz 2022-09-05 06:44:14
laravel_discuss-136945.jpg
Hello, i want to ask why the button not appear even my code true?

The output is correct.

What is the problem?

Beta_Tech 2022-09-05 12:19:47
Sai Prakash 2022-09-05 03:29:32
laravel_discuss-136903.jpg

Show your form code…
Especially the file input area

suuwhooop 2022-09-05 12:21:30
iamFinnz 2022-09-05 06:44:15
laravel_discuss-136946.jpg

move the edit link out of the form.

Neophyte_01 2022-09-05 12:43:27
Can anyone tell can we use resource route in laravel yajra datatable?
Neophyte_01 2022-09-05 12:44:08
Whenever I am trying to show index function using resource i am getting error target class not found in laravel 9
Web Developer 2022-09-05 13:03:21
Check same controller name is exist or not with diff location
Sanjunabajja 2022-09-05 13:49:00
I run advertising agency.
I give websites to clients.
I just need someone to fix the bugs said by clients. (Bugs don’t come very offen)
Payment will be on monthly basis.
Its part time.
If needed ready to collaborate
Sanjunabajja 2022-09-05 13:49:24
I run advertising agency.
I give websites to clients.
I just need someone to fix the bugs said by clients. (Bugs don’t come very offen)
Payment will be on monthly basis.
Its part time.
If needed ready to collaborate
Only Indians
user_hb 2022-09-05 13:53:10
Sanjunabajja 2022-09-05 13:49:24
laravel_discuss-136946.jpg
I run advertising agency.
I give websites to clients.
I just need someone to fix the bugs said by clients. (Bugs don’t come very offen)
Payment will be on monthly basis.
Its part time.
If needed ready to collaborate
Only Indians

if u pay per project and update, i can work with u

Sanjunabajja 2022-09-05 13:59:20
user_hb 2022-09-05 13:53:10
laravel_discuss-136946.jpg
if u pay per project and update, i can work with u

Plz dm

abedelwahab_haddaf 2022-09-05 14:00:36
Hi
does any one know how to install oracle 11g ?
Hisham 2022-09-05 14:04:48
How can create custom error code for validation in request ???
Beta_Tech 2022-09-05 14:16:30
Hisham 2022-09-05 14:04:48
laravel_discuss-136946.jpg
How can create custom error code for validation in request ???

Create custom request, then set message for the field in there.

Hisham 2022-09-05 14:19:00
{
“message”: “The given data was invalid.”,
“errors”: {
“password”: [
“password should be string”,
“password should contain small and big letters and numbers and characters”,
“password should be at least 8 characters”
]
}
}
Hisham 2022-09-05 14:19:13
and how can customize appearance of response?
Hisham 2022-09-05 14:19:44
for example i want to remove password word
Iam_1998 2022-09-05 14:20:35
laravel_discuss-136986.jpg

Beta_Tech 2022-09-05 14:23:35
Hisham 2022-09-05 14:19:13
laravel_discuss-136946.jpg
and how can customize appearance of response?

Customize appearance of response in blade file
-at-error(‘field’)
<div class=put class for css styling>
{{$message}}
</div>
-at-enderror

Beta_Tech 2022-09-05 14:25:21
You can also try check examples from the docs
Beta_Tech 2022-09-05 14:25:34
And ask about confusing part
Hisham 2022-09-05 14:26:06
Beta_Tech 2022-09-05 14:23:35
laravel_discuss-136946.jpg
Customize appearance of response in blade file
-at-error(‘field’)
<div class=put class for css styling>
{{$message}}
</div>
-at-enderror

I’m talking about api, not blade. 😐

Beta_Tech 2022-09-05 14:27:43
Hisham 2022-09-05 14:26:06
laravel_discuss-136946.jpg
I’m talking about api, not blade. 😐

Create custom class for your request and set the error message you want in a messages method. See the hint in above picture shared

Beta_Tech 2022-09-05 14:28:08
Iam_1998 2022-09-05 14:20:35
laravel_discuss-136986.jpg

Hint here with Messages method

Hisham 2022-09-05 14:29:28
laravel_discuss-136995.jpg

Iam_1998 2022-09-05 14:31:58
Hisham 2022-09-05 14:29:28
laravel_discuss-136995.jpg

This should do the magic now.

Hisham 2022-09-05 14:33:03
i know ,but how can change appearance of response in this file ? 😕
Beta_Tech 2022-09-05 14:33:37
What do you mean by appearance ?
Beta_Tech 2022-09-05 14:33:58
You want to change the words ?
Hisham 2022-09-05 14:34:20
yes
|