TL;DR: Check out the package.
I've been building an api for the past couple months and we've come to the point where the frontend needs to do some status checks. Status checks currently ping the crap out of the current api and are pretty darn slow.
The solution for us is a Socket based status check, the …
Laravels Soft Deleting allows you to retain deleted records in your database so they can be used or restored at a later point. Restoring deleted records is great if a mistake is made and you need to revert and retaining deleted data can often be useful in the event you need to pull up some old records.
We all use Laravels Validation feature to ensure we have the required input and it matches some sort of rule . The available rules cover plenty of situations but they fail to cover one of the most important rules, input Sanitization.
A typical validator
Laravels Auth system comes with a simple User …
I was tweetering and came across...
Ding! The bulb lights up and I say - let's get this for artisan - life will be easier. Less things to remember, faster access to the commands, why not?
Searching for Artisan Autocomplete
I found Eric Barnes had already written an article on using Oh My Zsh to …
I recently wrote an article about How-to setup Laravel 5, VueJs, and Bootstrap 3 and was asked:
My how-to didn't cover anything about that so here I will discuss how-to enable and modify Bootstrap 3 variables with Laravel 5 and Elixir.
Step 1: Create a project
In your terminal:
The next step in todays project is to integrate Social Authentication. I don't need any user details, rather not deal with lost passwords, forms and the likes so Social Authenticaton is the best bet for me, it's fast and easy.
Using Laravels Socialite
I went over to the github page for socialite and copied …
Vue.js has been getting a lot of attention lately so I've decided to give it another look in a new application I'm building. Vue.js is fast, small and easy to use, so why not give it a shot!
Since I'm a Laravel kinda guy I needed to configure vue with L5 and I always use Bootstrap, so that was needed as well.
I've been using Google Calendar for years and some of the importat bills I want to be reminded about have their own monthly event. I get anice little notification before the bill is due ( a few days) and the day of. I just have one or two so managing so few reminders is quite easy - but these days I want to keep track …
I often find my self using Cloudflares SSL offerings without ever installing a local certificate. So today when I was setting up a new site I was wondering why Laravels url() function wouldn't return a https url.
Install a local cert, switch your Cloudflare SSL mode to Full and then Laravel …
Today I was busy setting up CRUDdy.io , a new site I'll be working on with a SEO friend. I'll be hosting a lot of my Laravel based applications on this site and having to please my SEO pal I needed to use sub folders not sub domains.
So I googled "nginx laravel in a subfolder".
I found a lot of …
Want to get a 100 Page Speed Insight Score?
How about GTMetrix & Pingdom ?
Sure, why not?!
This article will help boost your Laravel based web-sites ratings if you follow a few simple steps.
The Testing Tools
We'll be using the following tools for testing.
Step 1: Get a Server!
UPDATE: Directions updated for Ubuntu 16.04 from DigitalOcean .
This example was originally written for Ubuntu 14.04.3 provided by DigitalOcean and ServerHub .
Provision a new droplet, vps, server, whatever you’re using and once you have the login details, login to SSH! …
Gotta love new sites! Instant referral spam as soon as it comes online. If your new domain is anything like mine (and this happens to ALL my new domains) you're seeing plenty of visitors.
But are they real visitors?
Google Analytics Says.. NO
Just take a look at your Referral Traffic Sources, since …
Revision control is not just for coders, it never has been , but this is a misconception that a lot of designers people have.
Revision Control is for EVERYONE!
Coders, designers, asset managers, copywriters, your boss and anyone else on your team who does anything related to FILES .
FILES, FILES, FILES
UPDATE: Google Maps seems to error out after some time, I will be testing new settings to see if it can still be bypassed. Analytics does not mind this at all.
That magical 100 page speed score can be yours if you're willing to spend the extra effort, and hours, to get it.
Google Analytics has always been a …
I recently started a Analytics program in Laravel 5.2 and was very pleased to find the auth system back in play and extreamly easy to use.
It didn't seem to come with any database seeders or commands to add users but seeding is nothing magical and the docs even had a great example.
Creating a user in Laravel 5 …
I just started to finish up a new project and one of the last steps is final optimizations. Google Page Speed module wants minified HTML, sometimes it's really strict, some times not so (really it's been random for the past 2 months).
On our wordpress site I used the Google Page Speed Module Plugin for NGINX but …
Yea, XML? Really.. who knew - it's now 2016 and this format lives on. So like my last post, a revamping this crappy site and OFC the API the company still uses is XML based, so I must be as well.
Remember writing xml by hand?
I don't, cause that'd be stupid. But many do, and it's still done today.
$xml = …
So it's been a while since I've posted. Not due to lack of ideas but lack of time.
return $tl ? 'dr' : 'read';
Having a little laugh at old code
I've been revamping a site from 2009 or so and it's been a blast laughing at all the awful code. One thing that's always strikes me as off is long handed …
Pretty simple but if you google around you get some pretty poor results, and no article specific to it - not certain why the results are so poor since this has got to be a pretty common search.
So a simple script and blog post will hopefully help some people.
View the snippet.
Using jQuery to …