J
J
jazzus2019-01-11 00:07:48
Laravel
jazzus, 2019-01-11 00:07:48

What is $request->get?

Found in github example

if (!(Hash::check($request->get('current_password'), Auth::user()->password)))

Is it just a post type? Can you give me the current password? You could have written $request->current_password

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
ExenJer, 2019-01-11
@jazzus

As written in the API documentation:
get() belongs to the Symfony Request class, while input() is defined in Laravel's trait

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question