Abraham Garcia in PHP Scripts   Thursday, April 22 2021

How To Do a Get Request on Laravel

Use the HTTP Helper in Laravel to Perform GET requests. This example also includes a Bearer Token Request.

In order to do a GET request on Laravel you can use the HTTP Request Helper.  Include this in your header to use the helper.  use IlluminateHttpRequest; Then you can

Continue reading
Abraham Garcia in PHP Scripts   Monday, January 4 2021

How to Create a Trashed Entry on Laravel

I was looking at the documentation for laravel as I am learning this framework. One cool thing I saw is how to modify the database for trashed elements. Here are the steps to get started

I was looking at the documentation for laravel as I am learning this framework. One cool thing I saw is how to modify the database for trashed elements. Here are

Continue reading
Abraham Garcia in PHP Scripts   Monday, March 16 2020

Get IP Details Via API with PHP

ipapi.com is a API for getting IP address details. You can use this to redirect users to different websites depending on the country access.

This is a short tutorial on how to get IP Address details with API ipapi.com  <?php echo file_get_contents('https://ipapi.co/8.8.8.8/json'); ?> Sample Response: { "ip": "8.8.8.8", "city": "Mountain View", "region": "California", "region_code":

Continue reading