Blog

Page 285 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for How exactly does __attribute__((constructor)) work?
c#gcc

How exactly does __attribute__((constructor)) work?

Published on September 2, 2023

# 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

Cover Image for Why do all the C files written by my lecturer start with a single # on the first line?
c#

Why do all the C files written by my lecturer start with a single # on the first line?

Published on September 2, 2023

📝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

Cover Image for How to printf "unsigned long" in C?
c#printf

How to printf "unsigned long" in C?

Published on September 2, 2023

# 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

Cover Image for How do I write to the console from a Laravel Controller?

How do I write to the console from a Laravel Controller?

Published on September 2, 2023

# 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

Cover Image for There is no existing directory at /storage/logs and its not buildable: Permission denied

There is no existing directory at /storage/logs and its not buildable: Permission denied

Published on September 2, 2023

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

Cover Image for Laravel Mix "sh: 1: cross-env: not found error"

Laravel Mix "sh: 1: cross-env: not found error"

Published on September 2, 2023

🔥 **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

Cover Image for MassAssignmentException in Laravel

MassAssignmentException in Laravel

Published on September 2, 2023

# 🌟 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

Cover Image for Laravel: PDOException: could not find driver
mysql

Laravel: PDOException: could not find driver

Published on September 2, 2023

# 🚀 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

Cover Image for How to install PHP composer inside a docker container

How to install PHP composer inside a docker container

Published on September 2, 2023

# 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

Blog | Matheus Mello