Posts in category: Laravel Framework

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


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


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


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


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


Packages | Laravel Framework

Laravel Sent Emails Package

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

David Carr


Packages | Laravel Framework

Laravel Blade Components Package

I've released a blade components package. Components can be made in projects easily enough bu...

David Carr


Packages | Laravel Framework

Laravel load anonymous components from packages

From Laravel 7, blade components are included. You may want to use these in packages and load a...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel Merge PDFs

Ever needed to merge multiple PDF's together? It's a common need. In this tutorial, I'll...

David Carr


API | Laravel Framework | Tutorials

Laravel API change unauthenticated message

When making API calls to Laravel when a user who is not authenticated makes a call a 401 status...

David Carr


API | Laravel Framework | Tutorials

Laravel returns 302 for unauthenticated calls

I've started to secure API calls with Laravel Airlock, when calling a route that's been secu...

David Carr


Laravel Framework | Tutorials

Upgrade Laravel Valet to PHP 7.4

First you should upgrade your machine to PHP 7.4...

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.