Blog

Page 273 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Laravel - Session store not set on request

Laravel - Session store not set on request

Published on September 2, 2023

# ๐Ÿš€ Laravel - Session store not set on request ๐Ÿš€ So, you're following along the guide on Authentication in your new Laravel project, and suddenly you see this error pop up when you visit the login or register route: ```php ErrorException in Request.php

Cover Image for Add new methods to a resource controller in Laravel

Add new methods to a resource controller in Laravel

Published on September 2, 2023

## Adding new methods to a resource controller in Laravel ๐Ÿ˜Ž So you want to add some extra firepower to your resource controller in Laravel? Good news! It is indeed possible to add new methods to a resource controller. In this blog post, we'll walk you th

Cover Image for Laravel Eloquent Sum of relation"s column

Laravel Eloquent Sum of relation"s column

Published on September 2, 2023

# Laravel Eloquent Sum of relation's column ๐Ÿ›’ Welcome to another exciting blog post! Today, we're going to tackle a common issue in Laravel: calculating the sum of a related column using Eloquent. ๐Ÿงฎ ## The Scenario ๐Ÿ› Let's imagine we have a shopping

Cover Image for Laravel Schema onDelete set null

Laravel Schema onDelete set null

Published on September 2, 2023

# Laravel Schema onDelete set null: The Ultimate Guide to Handling onDelete Constraints ๐Ÿ“ธ๐Ÿ—‚๏ธ Laravel Schema onDelete set null Can't figure out how to set proper onDelete constraint on a table in Laravel (working with Sqlite)? You're not alone! Many deve

Cover Image for Laravel not reading changes to .env file

Laravel not reading changes to .env file

Published on September 2, 2023

# Laravel not reading changes to .env file: A Troubleshooting Guide So, you're having trouble with Laravel not reading changes to your .env file? ๐Ÿ˜Ÿ Don't worry, you're not alone! This issue has been faced by many Laravel developers, and in this guide, we

Cover Image for Any way to declare an array in-line?
arraysjava

Any way to declare an array in-line?

Published on September 2, 2023

# ๐ŸŒŸDeclare an Array In-Line: The Ultimate Guide!๐ŸŒŸ Are you tired of declaring a separate variable just to pass an array to a method? ๐Ÿ™„ Do you wish there was a more concise way to declare an array in-line? ๐Ÿค” You're in luck! In this guide, we'll explore

Cover Image for Render basic HTML view?
htmljavascriptmongodbnode.js

Render basic HTML view?

Published on September 2, 2023

๐ŸŒŸ **Rendering Basic HTML View in Node.js with Express** ๐ŸŒŸ So, you've been working on a Node.js app using the Express framework, and you're trying to render a basic HTML view. However, you hit a roadblock and encountered the dreaded "Cannot find module '

Cover Image for Laravel - Route::resource vs Route::controller

Laravel - Route::resource vs Route::controller

Published on September 2, 2023

# Laravel - Route::resource vs Route::controller: Demystifying the Siblings ๐Ÿ‘ช So, you stumbled upon the fascinating world of Laravel and now you find yourself scratching your head, trying to understand the difference between `Route::resource` and `Route:

Cover Image for Can Anyone Explain Laravel 5.2 Multi Auth with Example

Can Anyone Explain Laravel 5.2 Multi Auth with Example

Published on September 2, 2023

# โšก๏ธLaravel 5.2 Multi Auth: Explained with Examples!โšก๏ธ Hey there, Laravel enthusiasts! ๐ŸŒŸ ๐Ÿค” Are you struggling with Laravel 5.2 Multi Auth and looking for a comprehensive guide with examples? Look no further! In this blog post, we'll explain the concept

Cover Image for How to do this in Laravel, subquery where in
mysql

How to do this in Laravel, subquery where in

Published on September 2, 2023

๐Ÿ”ฅ **Title: Mastering Laravel: Harnessing the Power of Subquery `WHERE IN`** ๐Ÿ”ฅ Hey there, fellow Laravel enthusiast! Need help tackling a complex subquery issue in Laravel? Look no further! In this guide, we'll explore how to write efficient queries usin