Guest User

Untitled

a guest
Jul 16th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. * Gets a "parameter" value.
  2. *
  3. * This method is mainly useful for libraries that want to provide some flexibility.
  4. *
  5. * Order of precedence: GET, PATH, POST
  6. *
  7. * Avoid using this method in controllers:
  8. *
  9. * * slow
  10. * * prefer to get from a "named" source
  11. *
  12. * It is better to explicitly get request parameters from the appropriate
  13. * public property instead (query, attributes, request).
  14. *
  15. * @param string $key the key
  16. * @param mixed $default the default value
  17. * @param Boolean $deep is parameter deep in multidimensional array
  18. *
  19. * @return mixed
  20. */
  21.  
  22. $name = Input::get('name');
  23.  
  24. request()->urlParam;
  25.  
  26. $request->get('current-password');
  27.  
  28. $request->post('current-password');
Add Comment
Please, Sign In to add comment