Blog

Page 260 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for How to compare two Carbon Timestamps?

How to compare two Carbon Timestamps?

Published on September 2, 2023

# How to Compare Two Carbon Timestamps? šŸ“…šŸ•’āš–ļø Are you having trouble comparing two Carbon timestamps in your Laravel application? You've come to the right place! In this blog post, we'll address common issues and provide easy solutions to help you compa

Cover Image for Using CSS in Laravel views?

Using CSS in Laravel views?

Published on September 2, 2023

# Using CSS in Laravel Views: A Beginner's Guide šŸŽØ So, you've just started your Laravel journey and are getting the hang of controllers and routing. šŸš€ That's great! But now, you want to level up your Laravel skills by adding some CSS to your views. šŸ’…

Cover Image for Disable rate limiter in Laravel?

Disable rate limiter in Laravel?

Published on September 2, 2023

šŸ”’ How to Disable Rate Limiter in Laravel: Breaking Free from Too Many Attempts šŸ”“ Are you tired of Laravel's pesky rate limiter getting in the way of your testing? 😫 Don't worry, I've got your back! In this blog post, I'll show you how to disable the ra

Cover Image for How to unset (remove) a collection element after fetching it?
collections

How to unset (remove) a collection element after fetching it?

Published on September 2, 2023

## How to Unset (Remove) a Collection Element after Fetching It? 😮 Have you ever come across a situation where you needed to remove a specific element from a collection after fetching it? šŸ¤” It can be a tricky task, especially if you're not familiar with

Cover Image for Get Object From Collection By Attribute
mysql

Get Object From Collection By Attribute

Published on September 2, 2023

# How to Get Object from Collection by Attribute in Laravel? Are you tired of dealing with arrays of models in Laravel, where you can't directly access the object you want to modify? šŸ™„ Don't worry, we've got you covered! In this post, we'll discuss a com

Cover Image for Laravel 5 show ErrorException file_put_contents failed to open stream: No such file or directory
windows

Laravel 5 show ErrorException file_put_contents failed to open stream: No such file or directory

Published on September 2, 2023

# Laravel 5 - ErrorException: No such file or directory šŸ“‚šŸš« So, you're happily coding away on your Laravel 5 project, everything is working fine, until suddenly you face the dreaded **ErrorException: file_put_contents failed to open stream: No such file

Cover Image for Laravel Eloquent limit and offset

Laravel Eloquent limit and offset

Published on September 2, 2023

# Mastering Laravel Eloquent Limit and Offset šŸ’Ŗ Hey there! šŸ‘‹ Are you having trouble with limiting and offsetting results in Laravel Eloquent? Don't worry, I've got your back! In this blog post, we'll delve into the world of Laravel Eloquent and explore

Cover Image for Laravel Eloquent - distinct() and count() not working properly together
count

Laravel Eloquent - distinct() and count() not working properly together

Published on September 2, 2023

# Distinct() and Count() in Laravel Eloquent: A Tricky Combination šŸ¤”šŸ’” Are you facing issues when trying to use the `distinct()` and `count()` methods together in Laravel Eloquent? Is the returned count not matching your expectations? Don't worry, you're

Cover Image for Managing relationships in Laravel, adhering to the repository pattern
oop

Managing relationships in Laravel, adhering to the repository pattern

Published on September 2, 2023

# Managing Relationships in Laravel with the Repository Pattern: A Complete Guide šŸš€ Are you struggling with managing relationships in your Laravel app while adhering to the repository pattern? 😫 Don't worry, we've got you covered! In this post, we'll di

Cover Image for Laravel Eloquent - Get one Row

Laravel Eloquent - Get one Row

Published on September 2, 2023

šŸ“ **Title: Laravel Eloquent - Getting that One Special Row!** šŸ‘‹ Hey there tech enthusiasts! Have you ever found yourself in a dilemma while trying to fetch just one row using Laravel Eloquent? šŸ¤” Don't worry, you're not alone! It's a common issue that m