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
24th Dec 2017 • David Carr Laravel blade - Remove the last comma from array Using the $loop variable inside of a loop it’s easy to check when you're at the start or t... Read more
10th Nov 2017 • David Carr Laravel 5.5 change public to public_html When moving Laravel onto a production server I like to place all Laravel files in their own director... Read more
11th Oct 2017 • David Carr Laravel 5.5 use a prefix on database tables I like to prefix my database tables to avoid any conflicts if using different applications within th... Read more
30th May 2017 • David Carr Laravel 5.4 toggle sidebar state with AdminLte using Ajax and Sessions AdminLte is a great Admin theme, one feature that’s really good is being able to toggle the si... Read more
9th May 2017 • David Carr PHP read file from network drive I’m working on a local hosted project where php needs to read a text file that’s stored... Read more
5th Mar 2017 • David Carr MySQL find and replace There are times when you need to bulk update a database. Such as changing all references of domain.c... Read more
5th Mar 2017 • David Carr MySQL next record order by title A common requirement for web applications is the ability to be able to move to the next and previous... Read more
9th Feb 2017 • David Carr Quick way to get the number of days in a month with PHP I’m building a php calendar and need to know the total number of days in a month in the past I... Read more
9th Feb 2017 • David Carr Splitting an array into smaller arrays using array_chunk There a times when you have an array and need to slit that array into smaller ones, I usually reach... Read more
8th Feb 2017 • David Carr Using X-editable for inline editing X-editable allows you to create editable elements on your page. Includes both popup and inline... Read more
28th Oct 2016 • David Carr Post to Slack using the incoming webhooks API Slack is a great tool for teams I use it to communicate with the rest of my team, recently I’v... Read more
8th Oct 2016 • David Carr How to use Github Hooks to send updates to your website For anyone that uses Github know’s how useful it is, especially on the collaboration front. Al... Read more
26th Jul 2016 • David Carr PHP reverse date using strtotime I use datepickers a lot in my projects the date’s default to the American YYYY-MM-DD format so... Read more
15th Jul 2016 • David Carr Installing php 7 on Mac Setting up a mac to run php 7 instead of the default php 5.5. Read more