How to set and get Cookie in laravel

Set Cookies public function setCookie(Request $request){ $minutes = 60; $response = new Response(‘Set Cookie’); $response->withCookie(cookie(‘name’, ‘MyValue’, $minutes)); return $response; } Get Cookie public function getCookie(Request $request){ $value = $request->cookie(‘name’); echo $value; }

Laravel 5.3 Notification Vs Mailable

Although it is not in the documentation, as of Laravel 5.3.7, the Notifications mail channel can work with Mailable objects in addition to the notification MailMessage objects. Therefore, you can create all your emails as Mailable objects, and if you decide to send them via Notifications, you would just have your toMail() method return the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)