Blog

Page 303 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Post request in Laravel - Error - 419 Sorry, your session/ 419 your page has expired

Post request in Laravel - Error - 419 Sorry, your session/ 419 your page has expired

Published on September 2, 2023

## 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

Cover Image for Populating a database in a Laravel migration file

Populating a database in a Laravel migration file

Published on September 2, 2023

## ๐Ÿš€ 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

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 '

Blog | Matheus Mello