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,379 Views
503 Top Post

Posts by Osman Aras

481 posts
Default post image
Laravel

How to Use `latest()` and `oldest()` to Order Queries

Simplify date-based ordering in Laravel with latest() and oldest() methods. A cleaner alternative to orderBy() for times...
Default post image
Laravel

How to Store an Uploaded File to a Specific Disk

Save uploaded files to different storage locations in Laravel using disks. Configure local, public, or cloud storage for...
Default post image
Laravel

How to See All Executed Queries in Laravel

Debug and optimize your Laravel application by logging all database queries. Learn how to use DB::listen() to monitor SQ...
Default post image
Laravel

How to Return a Custom 404 Response in a Laravel API

Customize Laravel's 404 responses for APIs with JSON messages. Handle missing resources gracefully with proper HTTP stat...
Default post image
Laravel

How to Protect Routes with Authentication Middleware in Laravel

Learn how to protect Laravel routes with auth middleware. Secure dashboards and profile pages by restricting access to a...
Default post image
Laravel

How to Pass Variables from a Controller to a Blade View

Send data from Laravel controllers to Blade templates using view(), with(), and compact(). Master different methods for...
Default post image
Laravel

Laravel Queue Workers: 12 Advanced Techniques for Maximum Throughput

Master Laravel queue optimization with 12 advanced techniques. Boost job processing throughput by 300% with worker confi...
Default post image
Laravel

Laravel How to Group a Collection with `groupBy()`

Organize Laravel collections into groups using groupBy(). Perfect for categorizing data by common attributes or creating...
Default post image
Backend

Why PHP is Faster Than Python But Python Rules Hearts

Discover why PHP outperforms Python in speed benchmarks but Python dominates developer surveys. Learn the 7 key reasons...
Default post image
Laravel

Laravel How to Get the Currently Authenticated User

Access the authenticated user in Laravel using Auth facade, auth() helper, or request object. Works in controllers, view...
PHP Generics 2025: When Will They Come and Why Are They Essential?
Php

PHP Generics 2025: When Will They Come and Why Are They Essential?

Why PHP generics are essential, when they're coming, and current alternatives. 2025 PHP generics status, PHPStan/Psalm s...
Default post image
Laravel

How to Filter a Collection Based on a Key's Value

Master Laravel collection filtering with where(), whereIn(), and filter() methods. Find items matching specific criteria...
Default post image
Laravel

How to Dispatch a Job to a Queue in Laravel

Learn how to dispatch jobs to queues in Laravel to handle time-consuming tasks like bulk emails in the background. Inclu...
Default post image
Php

How to Handle PHP's Mixed Type

Use PHP 8.0+ mixed type for maximum flexibility when any data type is acceptable. Handle dynamic data while maintaining...
Default post image
Php

How to Use PHP's Union Types

Use PHP 8.0+ union types to accept multiple data types in function parameters. Create flexible APIs while maintaining ty...