Posts by author: David Carr

Laravel Framework | Tutorials

Using Laravel's withCount to count a sub query

When you need to could a sub query Laravel provides a useful withCount method that is perfect.

David Carr


Laravel Livewire | Laravel Framework | PHP & MySQL | Tutorials

Laravel Livewire update dependent select menu's on change

Since Livewire is reactive, it's easy to hide or show select menu's based on whether another...

David Carr


Tutorials | PHP & MySQL | API

Create Bitly short links with PHP

Bitly is a great tool for creating short links, in this post we will use their API to generate links...

David Carr


PHPUnit | Tests | Laravel Framework | Tutorials

Testing Blade components in Laravel

Laravel provides a range of methods to test parts of the framework, one of which is called blade() w...

David Carr


Tutorials | PHP & MySQL

Format Xero dates from the API

Dates in Xero that are not already set to a datestring are in a format like Date(1518685950940+0000)

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Get the last day of the month from a date

To get the last day of the month use date('t')

David Carr


PHPUnit | Tests | Tutorials | Bash

Run tests on commit

Run your tests every time you commit changes.

David Carr


Tools | Development | Design

Setting up a new Mac checklist (2021 Edition)

Whenever I get a new Mac or decide to wipe it and start afresh the following are my go-to tools and...

David Carr


Packages | Laravel Framework | Tutorials | Development

Integrate Laravel with Xero

I've created a video showing how to integrate Laravel with Xero using my Laravel Xero package

David Carr


Tools

Easily switch PHP versions with PHP Monitor

When you have multiple versions of PHP installed you may want to switch which version is being...

David Carr


Laravel Livewire | Laravel Framework | Tutorials

Laravel Livewire testing download

Testing Laravel Livewire downloads an expected download by comparing the download name with a respon...

David Carr


Laravel Framework | Javascript | Tutorials

Import SweetAlert2 into Laravel with NPM

SweetAlert2 is a great package for user-friendly alerts, normally I install by adding in script tags...

David Carr


Packages | Laravel Framework | Tutorials

Login with Microsoft Graph

In this post, I'll explain the process of using Microsoft Graph as a login process to allow user...

David Carr


Tools | Development | Design

Released Tailwindcss Admin theme

I've released a new Tailwindcss based theme for admin style applications, the theme is in pure H...

David Carr


Packages | Laravel Framework

Laravel Sent Emails Package

I've released a new package for recording and displaying sent emails from Laravel applications....

David Carr


Support my work by donating with PayPal.

Subscribe to my newsletter

Subscribe and get my books and product announcements.

© 2009 - 2021 DC Blog. All code MIT license. All rights reserved.