Blog
Page 303 of my articles, tutorials, and thoughts
Latest Articles
Post request in Laravel - Error - 419 Sorry, your session/ 419 your page has expired
## How to Fix the "419 Sorry, Your Session has Expired" Error in Laravel 5.7 Laravel is a popular PHP framework known for its elegant syntax and powerful features. However, like any other framework, it can sometimes throw errors that can be frustrating to
Populating a database in a Laravel migration file
## ๐ Populating a Database in a Laravel Migration File So you're starting your journey with Laravel and have successfully created a migration file for your `users` table. But now, you want to populate a user record as part of the migration. No worries! I
Laravel - Session store not set on request
# ๐ 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
Add new methods to a resource controller in Laravel
## 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
Laravel Eloquent Sum of relation"s column
# 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
Laravel Schema onDelete set null
# 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
Laravel not reading changes to .env file
# 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
Any way to declare an array in-line?
# ๐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
Render basic HTML view?
๐ **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 '





