A
A
Andriy Kulina2021-03-05 18:00:08
Laravel
Andriy Kulina, 2021-03-05 18:00:08

What to pass as a parameter to [email protected]?

Writing

route('name.update' , \Illuminate\Support\Facades\Auth::id())
or type strings 'asd' don't work, it sends me to 404. And [email protected] works fine.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kokhan, 2021-03-05
@klonah

Try this
route('name.update' , Auth::user()->id)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question