PHPNews

Laravel 5.1 Dynamic Route Based Middleware

Written by asked.io - Published on asked.io
Aggregated on Thursday July 30, 2015 - Permalink

While developing LaravelCP I needed to add RBAC and that required some MiddleWare. Using Laravels Middlware feature you can add checks on your routes, we'll be using them to check permissions and roles, but you can really do just about anything. Using MiddleWare In A Package The documentation for Laravel 5.1 MiddleWare doesn't really help you use this feature in a Package so we'll search. …

Continue reading »


Simple Laravel 5.1 Bootstrap 3 Login Form

Written by asked.io - Published on asked.io
Aggregated on Thursday July 30, 2015 - Permalink

The next step after I add RBAC is to actually make use of it, seed some defaults, apply the Laravel Example templates and get to testing. After that, we always "make it look pretty", so lets... Make It Look Pretty I've designed 100's of login forms, advanced, basic, it's whatever the project needs. In this case I just want a really clean Bootstrap 3 login form. It doesn't need to do …

Continue reading »


Selecting the right beacon for your IoT project!

Written by asked.io - Published on asked.io
Aggregated on Monday September 21, 2015 - Permalink

I've recently started on a project that belongs to the Internet of Thigs, IoT, and it requires some proximity tracking - and for that the standard these days is BLE, or Bluetooth Low Energy, in the form of a 'beacon'. Over the past year many new products have been released, more beacons, more software, just more of everything. TL;DR Beacons are beacons. $14 Radbeacon Dot $90 …

Continue reading »


Cheap VPS Hosting Web Development

Written by asked.io - Published on asked.io
Aggregated on Saturday October 3, 2015 - Permalink

I always Google for 'cheap vps' when looking for new ones. Try it 10 years ago, when VPS was still a new thing and you found nothing. Try 5 years ago and you found prices twice as high as today with 1/4 the resources and very few SSDs. Try it today and you'll be flooded with providers offering cheap services with a lot of performance. TL;DR ServerHub - best bang for your buck, not a …

Continue reading »


Wordpress & 100 Google Page Speed, Step 1: Apache

Written by asked.io - Published on asked.io
Aggregated on Tuesday October 6, 2015 - Permalink

I recently was tasked with creating a Wordpress based site with custom templates. Whenever I make a site I always validate and optimize. When google introduced the Page Speed Insights tool years ago I was stoked to have an easy to use tool point out all the major issues with your site. I was sad when they removed the Chrome plugin :(. Getting a 100 Page Speed Insights Score, Tune up Apache …

Continue reading »


jQuery Check All Checkboxes in a List

Written by asked.io - Published on asked.io
Aggregated on Saturday October 10, 2015 - Permalink

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. TL;DR View the snippet. Using jQuery to Check All input checkboxes in a UL list. First create your list: <ul …

Continue reading »