Did u create a request called AuthorPostRequest?

|
khanbozkurt 2021-07-19 00:40:19
laravel_discuss-88630.jpg
yes correct response
Relaxed Guy 2021-07-19 00:40:19
did u create a request called AuthorPostRequest?
Relaxed Guy 2021-07-19 00:40:48
a get request is very different from..
Relaxed Guy 2021-07-19 00:41:08
GET please share the import files up the controller we see..
DesolatorMagno 2021-07-19 00:41:30
khanbozkurt 2021-07-19 00:40:19
yes correct response

Ok, route overwriting is a usual suspect here.

khanbozkurt 2021-07-19 00:41:52
laravel_discuss-88634.jpg

DesolatorMagno 2021-07-19 00:42:04
Yes we know that
‘get’ !== ‘post’
<.<
Relaxed Guy 2021-07-19 00:42:09
so that means he needs to add /create on the post request
Relaxed Guy 2021-07-19 00:43:05
public function create(Request $request) please that instead of public function(AuthorPostRequest $request)
DesolatorMagno 2021-07-19 00:43:07
https://laravel.com/docs/8.x/controllers#actions-handled-by-resource-controller

Laravel – The PHP Framework For Web ArtisansLaravel
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
DesolatorMagno 2021-07-19 00:43:17
create is for the form display.
DesolatorMagno 2021-07-19 00:43:37
laravel_discuss-88640.jpg

khanbozkurt 2021-07-19 00:43:38
laravel_discuss-88642.jpg

khanbozkurt 2021-07-19 00:43:38
laravel_discuss-88641.jpg
not change
Relaxed Guy 2021-07-19 00:44:19
can u change this public function create(Request $request) please that instead of public function(AuthorPostRequest $request)
DesolatorMagno 2021-07-19 00:44:28
Try see the preview of the response.
khanbozkurt 2021-07-19 00:45:27
i change controller method name -> store and fixed route dont solve
Relaxed Guy 2021-07-19 00:45:29
do u have anydesk
khanbozkurt 2021-07-19 00:45:42
laravel_discuss-88647.jpg

Relaxed Guy 2021-07-19 00:45:43
i help you inbox i help you its something small
khanbozkurt 2021-07-19 00:45:52
laravel_discuss-88649.jpg

khanbozkurt 2021-07-19 00:46:09
Relaxed Guy 2021-07-19 00:45:43
i help you inbox i help you its something small

ohh thank. i will share id

Relaxed Guy 2021-07-19 00:46:12
do u have anydesk
DesolatorMagno 2021-07-19 00:46:18
try /wsd
with get and post.
Ken ThankGod 2021-07-19 01:09:01
laravel_discuss-88656.jpg
Pls can someone help me with why I have this error…been trying to solve it for hours now
Ken ThankGod 2021-07-19 01:20:49
Anybody pls🙏🙏
Ken ThankGod 2021-07-19 01:24:38
Can you be of help bro
Ken ThankGod 2021-07-19 01:25:28
I need to finish this work before tomorrow…smh
mazcvei 2021-07-19 01:26:34
Is very easy…
Ken ThankGod 2021-07-19 01:26:59
mazcvei 2021-07-19 01:26:34
Is very easy…

What do I do ?

Ken ThankGod 2021-07-19 01:27:22
It’s registering new users and admin but it won’t login them in
Ken ThankGod 2021-07-19 01:27:41
And they’re in database already
DesolatorMagno 2021-07-19 01:34:49
DId you check the database? is the password being store with bcrypt ? how are you trying to login?
DesolatorMagno 2021-07-19 01:35:17
You can’t just say “look here, why it don’t work”
khanbozkurt 2021-07-19 01:47:24
Swagna thank you very much again for solved my issue
|