how to make cookie in laravel









what are response cookies in laravel

we use cookie for our web development and it plays very important part in web .Now i am here not to tell
you about what is cookie , i am here to tell you we can use response from cookie in laravel.

// app/routes.php

Route::get(‘markdown/response’, function()
$cookie = Cookie::make(‘fiddle’, ‘furrow’);
return View::make(‘home’)->withCookie($cookie);
here we are attaching cookie to response and it would be available to web page.
and withCookie is an object that comes with laravel by default.