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.

491 Posts
3,443 Views
504 Top Post

Posts by Osman Aras

491 posts
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...
Default post image
Laravel

Fix: 419 CSRF Token Mismatch When Calling an API from JavaScript

Solve Laravel's 419 CSRF token error when making AJAX requests. Learn how to properly send CSRF tokens with JavaScript A...
Default post image
Laravel

How to Use `updateOrCreate()` in Laravel

Learn how to use Laravel's updateOrCreate() method to insert or update records in a single query. Perfect for syncing da...
Default post image
Laravel

How to Prioritize Jobs on a Queue in Laravel

Learn Laravel queue prioritization with onQueue() method. Process high-priority jobs first using named queues and queue...
Default post image
Laravel

How to Run a Scheduled Task on a Single Server in Laravel

Learn how to run Laravel scheduled tasks on a single server using onOneServer() method. Prevent race conditions and dupl...
Default post image
Node.js

Node.js process.env Guide: Master Environment Variables 2025

Master Node.js process.env and environment variables. Complete guide with examples, best practices, and security tips fo...