9th Feb 2018 • David Carr Laravel apply a query constraint with global scopes Imagine your building a multi-tenancy application, in your controller your using a Contacts model ev... Read more
8th Feb 2018 • David Carr 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 cases you... Read more
8th Feb 2018 • David Carr Financial year select menu Financial years start from April to March, a common requirement is to be able to select a financial... Read more
8th Feb 2018 • David Carr 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 wo... Read more
8th Feb 2018 • Dan Sherwood A Brief Introduction to Gulp Gulp is a frontend task manager. In the simplest of terms, it is a tool which saves you from perform... Read more
8th Feb 2018 • David Carr Laravel storing mailables Laravel's Mailable emails are perfect for sending rich HTML emails, there are times when you nee... Read more
25th Jan 2018 • David Carr Laravel retrieving records in a random order Retrieving records in a random order is simple with MySQL using the RAND() function but it's not... Read more
25th Jan 2018 • David Carr Laravel show zeros when using zerofill in Eloquent When using Eloquent leading zeros are removed from integers data types. This is a problem when you w... Read more
4th Jan 2018 • David Carr 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 want t... Read more
3rd Jan 2018 • David Carr Laravel add custom exception handling Laravel comes with support for many types of exceptions, some are handled to load a 404 page others... Read more
3rd Jan 2018 • David Carr Laravel add login throttling with custom login controller When using a custom login controller by default it won't have the login throttling applied. Read more
2nd Jan 2018 • David Carr Create an XML sitemap Creating xml sitemaps are great for Google to inform their search bots of all your pages and th... Read more
2nd Jan 2018 • David Carr Laravel create an RSS reed In this post, I'll explain how to create an RSS feed, In your controller query a model, in this... Read more
1st Jan 2018 • David Carr Laravel get previous and next record A really common task is to display links for the previous and next record typically you find these o... Read more
1st Jan 2018 • David Carr Laravel force https with url helper using the url() helper is great for creating full http links, I use this for all links, when wo... Read more