Blog

Page 507 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Why would one omit the close tag?
security

Why would one omit the close tag?

Published on September 2, 2023

# ✨ Why would one omit the close tag? ✨ Have you ever come across the suggestion of omitting the close tag `?>` at the end of a PHP file? 🤔 You might be wondering why this is recommended and whether it's essential to follow. 🧐 In this blog post, we'll e

Cover Image for Send email using the GMail SMTP server from a PHP page

Send email using the GMail SMTP server from a PHP page

Published on September 2, 2023

# Sending Email using GMail SMTP Server from a PHP Page: Common Issues and Easy Solutions So, you're trying to send an email through GMail's SMTP server from a PHP page, but you're running into some trouble? No worries, we've got you covered! 📧💥 ## The

Cover Image for Call a REST API in PHP

Call a REST API in PHP

Published on September 2, 2023

📝 **Title: Calling a REST API in PHP: Your Ultimate Guide** So, you've been given a shiny new REST API to work with, but you're feeling a bit lost on how to make it work in PHP. You've searched high and low for proper documentation, only to be met with e

Cover Image for Get the Last Inserted Id Using Laravel Eloquent

Get the Last Inserted Id Using Laravel Eloquent

Published on September 2, 2023

# Get the Last Inserted ID Using Laravel Eloquent: A Simple and Effective Solution 🚀 So you have successfully been able to insert data into a table using Laravel's Eloquent ORM. But now you want to retrieve the last ID that was inserted, and you're not s

Cover Image for PHP date() format when inserting into datetime in MySQL
mysql

PHP date() format when inserting into datetime in MySQL

Published on September 2, 2023

# 📅 A Simple Guide to PHP date() Format when Inserting into MySQL datetime 👨‍💻 So you've been struggling to insert the result of PHP's `date()` function into a MySQL `datetime` type column, huh? 😕 Don't worry, you're not alone in this confusion. Many

Cover Image for No Application Encryption Key Has Been Specified

No Application Encryption Key Has Been Specified

Published on September 2, 2023

# 🚀 Fixing the "No Application Encryption Key Has Been Specified" Error in Laravel So, you tried running the `php artisan serve` command in your Laravel project and boom! You were greeted by the pesky error message: "RuntimeException: No application encr

Cover Image for PHP code is not being executed, but the code shows in the browser source code

PHP code is not being executed, but the code shows in the browser source code

Published on September 2, 2023

# 🚀 Solving PHP Code Execution Issue 🐘💻 So, you've written some PHP code, but when you try to run it, all you see in the browser is the code itself? Quite frustrating, isn't it? Don't worry, I'm here to help! In this blog post, we'll explore some commo

Cover Image for How to set up file permissions for Laravel?

How to set up file permissions for Laravel?

Published on September 2, 2023

## 🤔 How to Set Up File Permissions for Laravel? Setting up file permissions for Laravel can be confusing, especially when it comes to the `/storage` folder. In this guide, we will address common issues and provide easy solutions to help you navigate thi

Cover Image for Displaying HTML with Blade shows the HTML code
html

Displaying HTML with Blade shows the HTML code

Published on September 2, 2023

# How to Display HTML with Blade in Laravel: A Complete Guide 👨‍💻💡 So, you're trying to display HTML with Blade in Laravel, but instead of rendering the HTML, you are getting a raw string output? Don't worry, you're not alone! This is a common issue th

Blog | Matheus Mello