DC Blog

DC Blog

Followers: 2

Hi, I’m Dave. A Laravel Developer. I love to build Laravel apps using the TALL stack.

Read articles directly inside your inbox. Subscribe to the newsletter, and don't miss out.

GitHub use a single SSH key for all repositories

When using SSH with GitHub you'll often need to add deploy keys to the repo to allow read...

David Carr

2 min read -

How Laravel's optional() helper can keep your pages running

If you've ever used Laravel ORM to create a relationship between tables you will have come...

David Carr

1 min read -

Laravel Importing SQL dumps with seeds

Seeding with Laravel is really useful for populating the database for instance a typical u...

David Carr

1 min read -

My top VS Code Extensions (Plugins)

I've recently switched from using Submit Text full time to VS Code, I'm really enjoying th...

David Carr

3 min read -

Laravel apply a query constraint with global scopes

Imagine your building a multi-tenancy application, in your controller your using a Contact...

David Carr

1 min read -

Financial year select menu

Financial years start from April to March, a common requirement is to be able to select a...

David Carr

1 min read -

Regular expression to convert usernames into links like Twitter

When using plain textareas it's useful to link usernames in the format as @name but won’t...

David Carr

1 min read -

Laravel storing mailables

Laravel's Mailable emails are perfect for sending rich HTML emails, there are times when y...

David Carr

1 min read -

A Brief Introduction to Gulp

What is it? Gulp is a frontend task manager. In the simplest of terms, it is a tool which...

David Carr

8 min read -

Laravel set default value for creating model instances

Often when creating records with the ORM you'll set the same keys every time, in this case...

David Carr

1 min read -

Laravel show zeros when using zerofill in Eloquent

When using Eloquent leading zeros are removed from integers data types. This is a problem...

David Carr

1 min read -

Laravel retrieving records in a random order

Retrieving records in a random order is simple with MySQL using the RAND() function but it...

David Carr

1 min read -

Laravel login as user without their password

There are times you want to log in as another user to test their user permissions, you'll...

David Carr

3 min read -

Laravel add login throttling with custom login controller

When using a custom login controller by default it won't have the login throttling applied...

David Carr

2 min read -

Laravel add custom exception handling

Laravel comes with support for many types of exceptions, some are handled to load a 404 pa...

David Carr

1 min read -

Laravel create an RSS reed

In this post, I'll explain how to create an RSS feed. First create a route that will resp...

David Carr

3 min read -

Create an XML sitemap

Creating xml sitemaps are great for Google to inform their search bots of all your pages a...

David Carr

1 min read -

Laravel get previous and next record

A really common task is to display links for the previous and next record typically you fi...

David Carr

2 min read -

Next Page

Copyright © 2025 DC Blog - All rights reserved.