FormRequest::path()
  • References/PHP/Laravel/Foundation/Http

string path() Get the current path info for the request.

2025-01-10 15:47:30
FormRequest::hasHeader()
  • References/PHP/Laravel/Foundation/Http

bool hasHeader(string $key) Determine if a header is set on the request

2025-01-10 15:47:30
FormRequest::acceptsJson()
  • References/PHP/Laravel/Foundation/Http

bool acceptsJson() Determines whether a request accepts JSON.

2025-01-10 15:47:30
FormRequest::segment()
  • References/PHP/Laravel/Foundation/Http

string|null segment(int $index, string|null $default = null) Get a segment

2025-01-10 15:47:30
FormRequest::hasMacro()
  • References/PHP/Laravel/Foundation/Http

static bool hasMacro(string $name) Checks if macro is registered

2025-01-10 15:47:30
FormRequest::flashExcept()
  • References/PHP/Laravel/Foundation/Http

void flashExcept(array|mixed $keys) Flash only some of the input to the

2025-01-10 15:47:30
FormRequest::except()
  • References/PHP/Laravel/Foundation/Http

array except(array|mixed $keys) Get all of the input except for a specified

2025-01-10 15:47:30
FormRequest::accepts()
  • References/PHP/Laravel/Foundation/Http

bool accepts(string|array $contentTypes) Determines whether the current

2025-01-10 15:47:30
FormRequest::attributes()
  • References/PHP/Laravel/Foundation/Http

array attributes() Get custom attributes for validator errors.

2025-01-10 15:47:30
FormRequest::header()
  • References/PHP/Laravel/Foundation/Http

string|array header(string $key = null, string|array|null $default = null)

2025-01-10 15:47:30