Skip to content

Tag: php

How to restrict a user to only see their own profile

I have a view (resources/view/front/auth/profile.blade.php) and my route in file web.php is: My problem is that when a user logs in and gets redirected to their own profile page (http://exmaple.com/profile/2), he/she can change the URL to http://exmaple.com/profile/3 and see other users’ profile. I want…

mailgun send email to multiple users

i have the following mailgun.php file: define(‘MAILGUN_URL’, ‘https://api.eu.mailgun.net/v3/my_domain’); define(‘MAILGUN_KEY’, ‘xxxxxxxxx’); function sendmailbymailgun($to,$toname,$mailfromnane,$…