Skip to content
October 20, 2026
Newsletter
Random News
TechRadiant

TechRadiant

Your Destination for Tech News, Reviews, AI News and AI Articles

  • AI
  • Javascript
  • React
  • Bash
  • Git
  • Magento
  • Mysql
  • Redis
  • Frontend
  • Backend
    • PHP
    • Laravel
    • Redis
  • Home
  • Backend
  • Page 2

Category: Backend

  • Backend

How to get clients IP Address in PHP?

Techradiant4 years ago4 years ago02 mins

< 1 min readTo get the client’s IP address in PHP, you can use the $_SERVER[‘REMOTE_ADDR’] variable. This variable returns the IP address of the client making the request to the server. Here is an example of how you can get the client’s IP address in PHP: Note that this method may not always return the correct IP…

Read More
  • Backend

How to create a helper function in Laravel?

Techradiant4 years ago4 years ago03 mins

< 1 min readIn Laravel, a helper function is a PHP function that you can use globally in your application. You can create a helper function by defining it in a separate PHP file and then autoloading it or by defining it in a service provider. Here is an example of how you can create a helper function…

Read More
  • Backend

How to create custom helper functions in Laravel

Mani Bibek Acharya5 years ago5 years ago01 mins

< 1 min readTo create custom helper functions in Laravel, you can create a custom helper.php file on the app folder and load it using the composer Follow the steps below to use your custom helper function in Laravel. Create a helper.php file in your app folder Load the helper from your composer.json file Finally, run composer dump…

Read More
  • Backend

How to get the raw SQL query from the query builder in Laravel

Mani Bibek Acharya5 years ago5 years ago01 mins

< 1 min readTo get the SQL query from the query builder in Laravel as string, you can use the toSql() method on the query builder instance. For Example: you want to get the raw SQL query for the following.

Read More
  • Backend

How to add Disabled attribute in Laravel Form Class

Mani Bibek Acharya5 years ago5 years ago01 mins

< 1 min readWhen using the Laravel default Form class to render Forms in blade. You can add the [‘disabled’] array in the last of the form to make it disabled. For Example:

Read More
  • 1
  • 2

Sponsored

  • Top 5 Plugins to Install in Claude Code
  • Top 12 AI Video Generators in 2026 (Compared by Use Case)
  • How to Push a Docker Image to Docker Hub (Step-by-Step Guide)
  • Meet Jev: The AI Model That Makes Decisions Instead of Sentences
  • How to use Claude Code for Free?
TechRadiant 2026. Powered By BlazeThemes.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT