Blog
Page 285 of my articles, tutorials, and thoughts
Latest Articles
How exactly does __attribute__((constructor)) work?
# How does \_\_attribute\_\_((constructor)) work? 🤔 Have you ever come across the `__attribute__((constructor))` in your code and wondered what it actually does? 🤷♀️ In this post, we'll dive deep into understanding this curious attribute. Let's address
Why do all the C files written by my lecturer start with a single # on the first line?
📝Why do all the C files written by my lecturer start with a single # on the first line?🤔 If you've been going through C course notes or coding samples and noticed that every C program source file starts with a single "#" on the first line, you might be
How to printf "unsigned long" in C?
# How to printf "unsigned long" in C? 🖨️ Have you ever found yourself scratching your head trying to figure out how to properly print an "unsigned long" datatype in C? Don't worry, you're not alone! Many developers face this common issue, but fear not, w
How do I write to the console from a Laravel Controller?
# How to Write to the Console from a Laravel Controller Are you having trouble figuring out how to log console messages from a Laravel controller? Don't worry, we've got you covered! In this guide, we'll walk you through the steps to write to the console
There is no existing directory at /storage/logs and its not buildable: Permission denied
Title: 🚫💼 Solving the "Permission Denied" Issue in Laravel Deployment: No Directory at /storage/logs Introduction: Hey there, tech enthusiasts! 👋 Are you facing the dreaded "Permission Denied" error while deploying your Laravel application on an OVH we
Laravel Mix "sh: 1: cross-env: not found error"
🔥 **Fixing the "cross-env: not found" error in Laravel Mix** So you've been working on setting up Laravel Mix in your project, following the install guide on the Laravel website, but you keep running into a frustrating error: "sh: 1: cross-env: not found
MassAssignmentException in Laravel
# 🌟 Unraveling the MassAssignmentException in Laravel 🌟 Hey there, Laravel newbie! 👋 Are you baffled by an exception that's disrupting your attempts to seed your database? Fear not, as I'm here to shed some light on the mysterious MassAssignmentExcepti
Laravel: PDOException: could not find driver
# 🚀 Laravel: PDOException: could not find driver 🚀 So you're developing a website using Laravel, but you're facing a pesky issue: `PDOException: could not find driver`. Don't worry, I've got your back! 🤓 ## Understanding the Error This error commonly
How to install PHP composer inside a docker container
# How to Install PHP Composer Inside a Docker Container If you're working on a Laravel project using Docker, you might encounter the need to have PHP Composer inside your Docker container. This becomes essential when working with database migration, as La






