How-to articles, tricks, and solutions about PHP
How to get client IP address in Laravel 5+
In Laravel, you can get the client's IP address by using the Request facade's ip method.
How to get Current Timestamp from Carbon in Laravel 5
You can use the now() method from the Carbon class to get the current timestamp in Laravel.
How to get everything after a certain character?
You can use the strstr() function to get everything after a certain character in a string.
How to get file URL using Storage facade in laravel 5?
To get the URL of a file using the Storage facade in Laravel 5, you can use the url method.
How to get ID of the last updated row in MySQL?
To get the ID of the last inserted row, you can use the LAST_INSERT_ID() function.
How to get last key in an array?
You can use the end() function to get the last element of an array in PHP.
How to get Magento customer ID
In Magento, you can get the customer ID of a logged-in customer using the following code:
How to get page content using cURL?
To get the content of a webpage using cURL, you can use the following command: