first upload all files
This commit is contained in:
20
Themes/Storefront/Http/Controllers/NewsletterPopup.php
Normal file
20
Themes/Storefront/Http/Controllers/NewsletterPopup.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Themes\Storefront\Http\Controllers;
|
||||
|
||||
class NewsletterPopup
|
||||
{
|
||||
public function store()
|
||||
{
|
||||
$cookie = cookie()->forever('show_newsletter_popup', true);
|
||||
|
||||
return response('')->withCookie($cookie);
|
||||
}
|
||||
|
||||
public function destroy()
|
||||
{
|
||||
$cookie = cookie()->forever('show_newsletter_popup', false);
|
||||
|
||||
return response('')->withCookie($cookie);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user