I created a staging environment that I’m proud of, and I’d like to share it with you. I wanted my staging environment to accomplish two things: Always show the latest version of the project Be automatically populated with dummy data Edit: The “dummy data” strategy described below works great for small projects. For medium to large… Continue reading The Perfect Staging Environment
Category: Laravel
Refactoring Advanced Eloquent Filters To Collections
Amo Chohan wrote a very good article detailing a technique he uses to clean up controllers when dealing with complex search queries in eloquent. I’m also enjoying Adam Wathan‘s latest release: Refactoring to Collections – a read guaranteed to make you smarter. Amo really nailed the functionality here – but I think the final class… Continue reading Refactoring Advanced Eloquent Filters To Collections
Pushing Logic to Custom Collections
This is a technique that I recently found useful. Eloquent models allow you to specify a custom collection object to be returned – which sometimes can be a great place to put some business logic. While refactoring WhichBeach, I used a custom collection to move some logic from the Beach model to a custom BeachCollection.… Continue reading Pushing Logic to Custom Collections
Things I Used To Do (That Aren’t Cool Now)
I’m the proud owner of WhichBeach – the website that tells you which beach is best to visit (in Malta) based on the weather, updated hourly. As I’m picking up the codebase ahead of this Summer’s updates, I can’t help but review and refactor the existing code. It’s interesting to dissect previous design decisions. Also, I’ve learnt… Continue reading Things I Used To Do (That Aren’t Cool Now)
Using Laravel and Vue.js for Fame and Glory
Last weekend I chose to develop an SPA (single-page application) written in Laravel and Vue.js in order to promote the launch of my band Stalko’s second album. You can check out the final product, and follow along with the code. The brief for this project is the following: Allow users to listen to a new Stalko… Continue reading Using Laravel and Vue.js for Fame and Glory
Backing up Laravel Applications
If you’re not backing up your websites in production, you should be. Be prudent with your backups so that when data loss happens, you can recover quickly and easily. All projects that I work on are version controlled, meaning that the project files are automatically backed up to a remote repository. Though the solutions I go… Continue reading Backing up Laravel Applications
Learning Elasticsearch with Laravel
In this post we’ll explore Elasticsearch; the basics of search and how to set it up with Laravel, Homestead and even Forge. Even though there are resources out there, I couldn’t find the one article that summarised everything I needed to get up and running in as short a time as possible. What is Elasticsearch… Continue reading Learning Elasticsearch with Laravel
Laracon EU 2015 Recap
I wrote a recap of my experience at Laracon EU 2015. Learning Outcomes 1) It’s great to be surrounded by the pioneers of my industry – I’m starting to see the benefit of becoming an active part of this community. 2) It’s not all about the code. Working on building better relationships with clients means… Continue reading Laracon EU 2015 Recap