David Carr

David Carr

Followers: 324

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 set default value for creating model instances

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

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

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

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

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 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

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

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

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

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

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 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

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 -

Use TPL syntax highlighting in Atom with Nova Framework

Use TPL syntax highlighting in Atom with Nova Framework

Using Atom editor is great visually the only issue is out the box .tpl is not recognized o...

David Carr

1 min read -

GitLab deploy to server

GitLab deploy to server

This tutorial will show you how to deploy from GitLab to your server using GIT. Deploying...

David Carr

4 min read -

Github deploy to server

Github deploy to server

This tutorial will show you how to deploy from GitHub to your server using GIT. Deploying...

David Carr

4 min read -

Terminal open folder in Atom

Terminal open folder in Atom

Open the Atom or the current folder in Atom using Terminal can be done by running this com...

David Carr

1 min read -

Terminal open folder in Sublime Text

Terminal open folder in Sublime Text

If you often work on the different projects in Sublime Text being able to open the current...

David Carr

1 min read -

Next Page

Copyright © 2024 DC Blog - All rights reserved.