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.

Creating Flexible Layouts in Laravel with Yields, Includes, and Slots

Laravel | yield | include | slots | layouts

Creating Flexible Layouts in Laravel with Yields, Includes, and Slots

Yields In Laravel, the @yield directive is used in blade templates to define a section tha...

David Carr

7 min read -

Enhancing Laravel Applications with Traits: A Step-by-Step Guide

code-reuse | Laravel | traits

Enhancing Laravel Applications with Traits: A Step-by-Step Guide

What are traits? Traits are a mechanism for code reuse. Traits allow you to create methods...

David Carr

4 min read -

Laravel ApiResouce name nested route placeholder

Laravel | routes | nested | placeholders

Laravel ApiResouce name nested route placeholder

When using an ApiResource that has more than one placeholder it may seem tricky to figure...

David Carr

2 min read -

My process for writing Laravel packages

Laravel | packages

My process for writing Laravel packages

Introduction I was asked recently how I started when writing new Laravel packages. In this...

David Carr

12 min read -

Running HTTP requests in PhpStorm

2Articles1Week | http | Requests | PhpStorm | APIs

Running HTTP requests in PhpStorm

Running API tests you may be tempted to open PostMan or another API client, did you know,...

David Carr

3 min read -

Extracting a time into select menus with PHP

2Articles1Week | Explode | list

Extracting a time into select menus with PHP

When storing time in a database, often I'll store this in a time format such as 14:25:00 W...

David Carr

2 min read -

Vue show and hide form elements

2Articles1Week | Vue.js | forms | condition-rendering | Conditional statement

Vue show and hide form elements

Introduction When working with forms, it is common to display or conceal various fields ba...

David Carr

4 min read -

My PhpStorm Setup

PhpStorm | setup | 2Articles1Week

My PhpStorm Setup

Theme I use the New UI which is located at Appearance & Behaviour -> New UI Once turned o...

David Carr

2 min read -

VIM shortcuts

vim | vimrc | cheatsheet | 2Articles1Week

VIM shortcuts

VIM Modes There are multiple modes in vim, normal mode is loaded by default. Command mode....

David Carr

4 min read -

Laravel Extract Language to lang files

Laravel | package | languages | translation

Laravel Extract Language to lang files

If you've already used JSON lang in your views, here's a handy package to extract all lang...

David Carr

1 min read -

I'm writing a new Laravel book on testing called Laravel Testing Cookbook

Laravel | Testing | pestphp | PHPUnit | books

I'm writing a new Laravel book on testing called Laravel Testing Cookbook

Laravel Testing Cookbook will cover common use cases. Sign up for the waitlist to be notif...

David Carr

1 min read -

Adding pinned posts with Laravel

Laravel | posts | pinned

Adding pinned posts with Laravel

Let's say you have a blog and have posts ordered by their published date. Later you decide...

David Carr

2 min read -

Laravel Livewire Resources

Laravel-livewire | tools | packages | components

Laravel Livewire Resources

Laravel Livewire makes building interactive web applications easy! Laravel Livewire has am...

David Carr

2 min read -

Upload images in Ckeditor 5 with Laravel

CKEditor | Laravel

Upload images in Ckeditor 5 with Laravel

Base64 upload adapter Simple image adapter CKeditor 5 out-of-the-box does not come with...

David Carr

3 min read -

Dev Retro 2022 - My reflections

#DevRetro2022

Dev Retro 2022 - My reflections

In this post, I want to reflect on my journey as a developer over the last year. I publish...

David Carr

3 min read -

Setup Jira for managing scrum Sprints from scratch

Sprints | JIRA | project management

Setup Jira for managing scrum Sprints from scratch

This post is very opionated, this covers how I like to work with sprints, you may work ver...

David Carr

11 min read -

PHP Generate a UL menu from an array

UL | array | menu | Recursive function | PHP

PHP Generate a UL menu from an array

Take an array and build a menu UL list from it. The array should support top-level as well...

David Carr

3 min read -

Write an SEO-Friendly Title: A Quick Start Guide

SEO | SEO for Developers

Write an SEO-Friendly Title: A Quick Start Guide

As a website owner or content creator, you know how important it is to write great titles....

David Carr

3 min read -

Next Page

Copyright © 2025 DC Blog - All rights reserved.