Topic: PHP

Laravel Request Lifecycle Explained Step by Step

When a request hits a Laravel app, many things happen before the final HTML or JSON response comes back.

If you are new to Laravel, this can feel confusing because you write a route and a controller, but the framework does much more in the background.

This article breaks down the full request lifecycle in simple steps, so you can understand what happens and where to debug when something goes wrong.

Read More...

How to prevent SQL injection

A SQL injection attack consists of insertion or “injection” of a SQL query via the input data from the client to the application i.e web browser. A successful SQL injection exploit can read sensitive data from the databa

Read More...

Test sending emails in PHP with XAMPP and MailHog

Sending mail with PHP is easy. We can test it with a local SMTP server. MailHog is very useful for this purpose.

MailHog

MailHog is program thats creates a local SMTP mail sever for testing purposes. Let’s see how to configure MailHog.

Read More...

PHP 05: PHP comments

Comments are the part of the PHP code , that is not executed. It’s a note note to the person who is reading the code.

Read More...

PHP 04: PHP Tags

PHP codes must be enclosed by PHP tags. When PHP parser pareses a file , it looks for opening and closing PHP tags. It tells the parser when to start interpreting and when to stop. Reason for parsing in this manner is allowing to embed in different types of documents like HTML.

Read More...