Api Rate Limiting Out of the box in Laravel 5.2
This is a series of posts that showcase new features and aha moments in Laravel 5.2 1. Implicit Route Model Binding 2. Simplified Eloquent Global Scopes 3. Append Scheduled Tasks Output 4. Form Array Validation 5. Middleware Groups 6. Auth Scaffolding 7. API Rate Limiting 8. More helper functions Laravel makes web development so easy [...]
How to build a Project Management App in Laravel 5 – Part 9
Create a collaborators directory in the resources/views directory and create a form.blade.php. In the form.blade.php, add this: [crayon-59401ace2450a398565959/] Then go to your show.blade.php in your projects directory and add @include('collaborators.form') just immediately after the div that gives us information about the number of comments, [...]
How to build a Project Management App in Laravel 5 – Part 8
Let’s provide the ability to add Comments to the various tasks. Create a new folder named comments in the views directory and create a form.blade.php inside the comments directory. Move the part of the show.blade.php that has to do with the comment form into form.blade.php file like so: form.blade.php [crayon-59401ace275fa982006581/] [...]
Get the Hang of PHP 7
Long before I started looking into PHP, I disliked it particularly for two main reasons; the supposed “shittiness” and the dynamic typing it offered, just like other languages like Javascript, ruby, etc. This particular bias was because I was coming from Java, where form and structure are “commandments” you have to obey or be marked [...]
PHP Super Globals
Superglobals are built-in variables in PHP that are always available in all scopes. Available in all scopes mean these variables can be accessed from any part of your application/project. These are the super global variables we have in PHP at the time of this writing: 1. $GLOBALS Any variable assigned to this super global is accessible in [...]
PHP[WORLD] 2015
I welcome you to this year’s php[world] conference. The conference strive to create an amazing experience for the greater PHP community that brings together developers from Drupal, WordPress, Joomla!, Magento, Zend Framework, Symfony, Laravel, CakePHP and more. A lot of very important personalities are present for the #PHPWorld Conference [...]
Profile your PHP Applications with BlackFire
There are so many situations where you really want to monitor the performance of your web apps. Sometimes you want to know why a certain part of the app takes donkey hours to load, other times you just want to find out ways you can increase the load time of your app. One very good solution that gives you awesome analysis about it right now [...]
Mock Objects in PHP – Testing
Introduction In unit tests, mock objects simulate the behaviour of real objects. They are commonly utilised to offer test isolation, to stand in for objects which do not yet exist, or to allow for the exploratory design of class APIs without requiring actual implementation up front. A good example, where mock objects would be required, is [...]
Laravel Eloquent For Days: Crud, Mass Assignment, Aggregates, Eager Loading
Eloquent is the ORM for Laravel and it is a house of treasures. Dive deep into it and you’ll see lots of quality, awesome and unused mansions lying within. This is the beginning of a series titled Laravel Eloquent For Days! There are several helper functions, tips, tricks and techniques you will be exposed to when dealing with [...]
DOM Traversal in PHP – As simple as JQuery
JQuery is a very popular javascript library that has eased the traversal of HTML DOM elements. The Javascript community has benefitted immensely from that. PHP also has a very good library that can be used to traverse the DOM, it’s very efficient and simple to use. Today, I’ll show you how to do DOM Traversal in PHP using Symfony’s [...]