Latest Updates in Laravel 9

whats new in laravel 9

Laravel is the most famous web application framework for many years. Because of its easy working module, elegant syntax, and reusability of code helps developers to simplify the process of website development. Common tasks like routing, sessions, caching, and authentication are easily done in Laravel. Laravel offers a powerful tool that is required for large … Read more

PHP Interview Questions for Freshers 2023

PHP Interview Questions for Freshers

PHP stands for PHP Hypertext Pre-processor and is an open-source programming language that is widely used for creating a dynamic website and mobile APIs.  Following are the PHP interview questions. Q1.  How PHP is a case-sensitive language? PHP is partially case sensitive which refers to variable names that are case sensitive but function names are … Read more

Laravel Interview Questions for Freshers [2023]

Laravel Interview Questions for Freshers

Laravel is a PHP web application framework. Laravel is very easy to learn for beginners and is developer-friendly. With more usage of Laravel, you will learn more about the functionalities of this toolkit. Here are the basic Laravel questions that are likely to be asked in the interview. Q1. What is the latest version of … Read more

Laravel Security Best Practices

Laravel Security Best Practices

Top Laravel Security Features While developing any website, security is a major concern. As technology advances, various online threats arise. In order to protect our website from several attackers and spammers, the security of the website becomes highly important irrespective of the cost involved. Laravel has security features for the websites that are designed in … Read more

How to Send SMS using Twilio in Laravel

In this example, I will show you send SMS using Twilio in laravel. step by step explains laravel – Twilio SMS notifications. This post will give you a simple example of laravel SMS notification twilio. you’ll learn laravel send sms to mobile with Twilio. In this example, I will give you a very simple example … Read more

Displaying the Error Messages in Laravel after being Redirected from controller

How can I display the validation message in the view that is being redirected in Laravel? Here the answer to show validation error/success messsage in laravel Blade file. @if($errors->any()) <div class=”alert alert-danger”> <p><strong>Opps Something went wrong</strong></p> <ul> @foreach ($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> </div> @endif @if(session(‘success’)) <div class=”alert alert-success”>{{session(‘success’)}}</div> @endif @if(session(‘error’)) <div … Read more

Show PHP Errors

php display errors // Add these lines somewhere on top of your PHP file: ini_set(‘display_errors’, 1); ini_set(‘display_startup_errors’, 1); error_reporting(E_ALL); show php errors ini_set(‘display_errors’, 1); ini_set(‘display_startup_errors’, 1); error_reporting(E_ALL); How do I get PHP errors to display //PHP functions ini_set(‘display_errors’, 1); ini_set(‘display_startup_errors’, 1); error_reporting(E_ALL); //.htaccess php_flag display_startup_errors on php_flag display_errors on php_flag html_errors on php_flag log_errors on […]

Categories PHP

How to redirect HTTP to HTTPS Using .htaccess

How to redirect HTTP to HTTPS Using .htaccess

Nowadays most of all web browsers have started showing insecure warnings on sites without SSL certificates. Without SSL, your website will show insecure to the visitors. Therefore, using an SSL-encrypted connection for safety, accessibility, or PCI compliance reasons is important. It becomes necessary to redirect from HTTP to HTTPS. I will guide you step by step how to … Read more