Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What are cookies? How to get, set, distroy cookies in laravel?



What are cookies? How to get, set, distroy cookies in laravel?..

Answer / Rekha Meena

Cookies are small pieces of data stored on a user's browser by a website. In Laravel, you can use the $request and $response objects to handle cookies. To set a cookie: {"php $response->cookie('myCookie', 'value', $minutes = 60);"}, to get a cookie: {"$cookieValue = $request->cookie('myCookie');"}, and to delete a cookie: {"$response->deleteCookie('myCookie');"}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

How to list all routes in laravel?

1 Answers  


In order to run laravel. What permissions are required to be on storage and the bootstrap/cache directories?

1 Answers  


How will you describe fillable attribute in a laravel model?

1 Answers  


What is the use of blade?

1 Answers  


What is route group in laravel?

1 Answers  


What are the Steps for Creating a Blade Template Layout ?

2 Answers  


What is a Laravel - Authentication ?

1 Answers  


What is meant by Authorization Mechanism in Laravel ?

2 Answers  


What is Basic Response in Laravel ?

2 Answers  


What are the main differences between laravel 4 and laravel 5.x?

1 Answers  


What is a controller middleware?

1 Answers  


How x-csrf-token is different from csrf tokens?

1 Answers  


Categories