David Carr

David Carr

Followers: 329

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.

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 -

Laravel force https with url helper

using the url() helper is great for creating full http links, I use this for all links, wh...

David Carr

2 min read -

Laravel blade - Remove the last comma from array

Using the $loop variable ( The new $loop variable in Laravel 5.3 ) inside of a loop it’s e...

David Carr

1 min read -

jQuery autocomplete on new element

jQuery’s autocomplete plugin is perfect for filling in forms with suggestions as you type...

David Carr

1 min read -

Laravel 5.5 change public to public_html

When moving Laravel onto a production server I like to place all Laravel files in their ow...

David Carr

1 min read -

Next Page

Copyright © 2024 DC Blog - All rights reserved.