1 week ago


Laravel Example Step 1:

Laravel Example Step 1: Execute the below command to create a controller in which we will manipulate the cookie. php artisan make:controller CookieController --plain Step 2: After successful execution, you will receive the following output: Step 3: Copy the following code in app/Http/Controllers/CookieController.php file. app/Http/Controllers/CookieController.php

Laravel $minutes = 1; $response = new Response('Hello World'); $response->withCookie(cookie('name', 'virat', $minutes)); return $response; } public function getCookie(Request $request){ $value = $request->cookie('name'); echo $value; } } Step 4: Add the following line in app/Http/routes.php file. app/Http/routes.php Route::get('/cookie/set','CookieController@setCookie'); Route::get('/cookie/get','CookieController@getCookie'); Step 5: Visit the following URL to set the cookie. http://localhost:8000/cookie/set Step 6: The output will appear as shown below. The window appearing in the screenshot is taken from firefox but depending on your browser, cookie can also be checked from the cookie option. 49

Laravel Starter - PHP User Group (Myanmar)
090-056 Exam BrainDumps are Out - Download and Prepare
Download C# Tutorial (PDF Version) - Tutorials Point
Twitter Application Development For Dummies pdf
Overview of the workshop - Internet2 Middleware Initiative
WSDL 1.1 Overview
WSDL 1.1 Overview
CPA Latest Exam BrainDumps
Boost Test Library