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 is meant by Attaching Cookies ?



What is meant by Attaching Cookies ?..

Answer / sunil kumar

The withcookie() helper method is used to attach cookies.
The cookie generated with this method can be attached by calling withcookie() method with response instance.
By default, all cookies generated by Laravel are encrypted and signed so that they can't be modified or read by the client.

Example :

Route::get('/cookie',function(){
return response("Hello", 200)->header('Content-Type', 'text/html')
->withcookie('name','Virat Gandhi');
});

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

List the software’s included in laravel homestead?

0 Answers  


What is meant by Controller Middleware ?

1 Answers  


What are enhancement features in laravel 5.8?

0 Answers  


What can I do with laravel?

0 Answers  


How to get current url in laravel?

0 Answers  


What is an api route?

0 Answers  


Explain what are laravel facades?

0 Answers  


What is laravel quora?

0 Answers  


How to redirect user with flashed session data in laravel?

0 Answers  


How to generate it on homestead?

0 Answers  


Explain how can you write your own service provider in laravel?

0 Answers  


Explain laravel’s middleware?

0 Answers  


Categories