Answers for "laravel response header"

PHP
1

laravel get header from request

public function yourControllerFunction(\Illuminate\Http\Request $request)
{
    $header = $request->header('Authorization');

    // do some stuff
}
Posted by: Guest on November-03-2020
1

laravel return response view

return response()->view('your_view', compact('variableName'));
Posted by: Guest on October-06-2020

Browse Popular Code Answers by Language