What do you do with the form then?

|
satish9323 2020-01-21 18:54:12
Any Examples Or demo pls
skys215 2020-01-21 19:38:39
JavaScript can call print method
Fatima 2020-01-21 20:32:54
laravel_discuss-25013.jpg

Fatima 2020-01-21 20:33:26
laravel_discuss-25014.jpg
Why☹️
Fatima 2020-01-21 20:33:46
Fatima 2020-01-21 20:32:54

It is get but error occurs

kuzmich321 2020-01-21 20:33:47
put resource at the bottom
Fatima 2020-01-21 20:34:06
kuzmich321 2020-01-21 20:33:47
put resource at the bottom

Instead of post???

kuzmich321 2020-01-21 20:34:15
nope
kuzmich321 2020-01-21 20:34:35
it’s gonna be the last one and the rest must be above
kuzmich321 2020-01-21 20:35:34
laravel_discuss-25020.jpg

kuzmich321 2020-01-21 20:35:36
like so
Fatima 2020-01-21 20:35:47
Got it
kuzmich321 2020-01-21 20:37:21
does it work now?
Fatima 2020-01-21 20:46:49
kuzmich321 2020-01-21 20:37:21
does it work now?

Nop

kuzmich321 2020-01-21 20:48:10
What do you do with the form then ?
kuzmich321 2020-01-21 20:51:35
you wanna use the same method on the form with the method you specified in the route
kuzmich321 2020-01-21 20:52:42
the error you’re gettting due to get req on the form
kuzmich321 2020-01-21 20:53:01
but the rout has a post on it
2020-01-21 21:00:21
Mahbub_Habib 2020-01-21 09:13:31
What was the error?

laravel_discuss-25030.jpg

Fatima 2020-01-21 21:16:40
kuzmich321 2020-01-21 20:53:01
but the rout has a post on it

as you see my route is post

rayan_jolfa_aras 2020-01-21 21:23:15
laravel_discuss-25041.jpg
مشگلش چیه اخه این
kuzmich321 2020-01-21 21:25:44
2020-01-21 21:00:21

try to run “composer dumpautoload” and when it’s done the problem must disappear

kuzmich321 2020-01-21 21:33:47
2020-01-21 21:00:21

and there’s no need to tell laravel where Seeder is located. it knows ! if you want to clarify then just type its name

2020-01-21 21:35:05
I have already run composer dump-autoload
2020-01-21 21:35:16
Not worked
kuzmich321 2020-01-21 21:40:34
make sure you did everything right with the model, factory, migrations and seeds
2020-01-21 21:56:20
Every thing is good. Work on Ubuntu. But not working on windows
LUEHEJE 2020-01-21 22:22:51
Hi) I know that it for Laravel programmer group but help me if somebody use Symfony.
LUEHEJE 2020-01-21 22:22:57
laravel_discuss-25049.jpg

2589 2020-01-21 22:23:31
laravel_discuss-25050.jpg

2589 2020-01-21 22:23:52
laravel_discuss-25051.jpg

2589 2020-01-21 22:23:58
user
2589 2020-01-21 22:24:35
laravel_discuss-25053.jpg

2589 2020-01-21 22:24:39
role
Fatima 2020-01-21 22:34:05
laravel_discuss-25055.jpg
My ckeditor result
Fatima 2020-01-21 22:34:19
Does any body have idea??
2589 2020-01-21 22:55:42
{! result !}
Fatima 2020-01-22 00:36:40
This worked {!! !! }
Fatima 2020-01-22 00:37:20
How can I know how many books are for the each users ine one to many rel?
andrejs555 2020-01-22 00:53:28
No docs are too crazy
LiceaPacheco 2020-01-22 01:06:55
Fatima 2020-01-22 00:37:20
How can I know how many books are for the each users ine one to many rel?

You must create a belongsTo in book model

LiceaPacheco 2020-01-22 01:07:16
After that you can do this
LiceaPacheco 2020-01-22 01:07:53
$users = User::get();
LiceaPacheco 2020-01-22 01:08:36
foreach ($users as $user)
LiceaPacheco 2020-01-22 01:09:08
{ $user->book(); }
LiceaPacheco 2020-01-22 01:09:29
And that’s what you want
LiceaPacheco 2020-01-22 01:09:41
Hope this help Fátima
NeutronStein 2020-01-22 01:10:30
That’s not an efficient answer
NeutronStein 2020-01-22 01:10:57
You need to preload the books relationship on user model
NeutronStein 2020-01-22 01:11:23
$users = User::with(‘books’)->get()
|