Navigation

Osman Aras

Osman Aras

Hi, I'm Osman. I recently moved to the United States from Turkey. I'm an amateur blogger, and I write about software, travel, and whatever sparks my curiosity. That's why I created this blog — to share the things I explore and discover.

481 Posts
3,431 Views
504 Top Post

Posts by Osman Aras

481 posts
Default post image
Node.js

How to Add Custom Headers to All Express Responses with Middleware

Add custom headers to every Express.js response using middleware. Perfect for API versioning, security headers, or brand...
Default post image
Php

How to Map Arrays with array_map()

Transform array elements using array_map() to apply functions to every element, creating powerful data transformation pi...
Default post image
Laravel

Dynamic Module Architecture: Building Plugin-Based Applications in Laravel

Learn how to build extensible Laravel applications with a dynamic module system. Implement plugin architecture with auto...
Default post image
Php

How to Sort Arrays by Key and Value

Master PHP array sorting with built-in functions for organizing data by values, keys, or custom criteria using sort(), a...
Default post image
Laravel

How to Check if a Request is an AJAX Request (`$request->ajax()`)

Detect AJAX requests in Laravel to return different responses for regular and asynchronous requests. Perfect for handlin...
Default post image
Laravel

How to Create a Custom Artisan Command

Build custom Laravel Artisan commands for repetitive tasks. Automate workflows with command-line tools that integrate wi...
Default post image
Laravel

How to Count Query Results with `->count()`

Efficiently count database records in Laravel using count(). Get row counts without retrieving all data for better perfo...
Default post image
Laravel

Laravel Octane: 15 Advanced Configuration Techniques for Maximum Performance

Master Laravel Octane configuration tuning with 15 advanced techniques. Boost Laravel performance by 20x with Swoole/Roa...
Default post image
Node.js

Fix: Node.js CORS Error When Making API Requests from Frontend

Solve CORS policy errors in Express.js with the cors middleware. Quick fix for cross-origin requests blocking your API c...
Default post image
Node.js

How to Return a Custom 404 Response in Express.js

Learn how to create custom 404 error pages in Express.js with middleware. Simple solution for better user experience and...
Default post image
Php

How to Use PHP's Arrow Functions (fn =>)

Use PHP 7.4+ arrow functions (fn =>) for concise, single-expression functions. Simplify callbacks and reduce code with a...
Default post image
Php

How to Handle PHP's Strict Types Declaration

Enable PHP strict types with declare(strict_types=1) to catch type errors early. Improve code reliability and prevent ty...
Default post image
Php

How to Use PHP's Spaceship Operator (<=>)

Use PHP's spaceship operator () for three-way comparisons. Simplify sorting functions and comparison logic with this con...
Default post image
Php

How to Handle PHP's Null Coalescing Operator (??)

Use PHP's null coalescing operator (??) to handle null values elegantly. Simplify isset() checks and provide default val...
Default post image
Php

How to Fix "Call to undefined function" Error

Fix PHP's "Call to undefined function" error by checking function names, enabling extensions, and using proper autoloadi...