Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Laravel Podcast:
Episode 34: Jobs & Jawas
Sep 03, 2015 @ 09:48:54

The latest episode of the Laravel Podcast, hosted by Matt Stauffer with guests Jeffrey Way and Taylor Otwell, has been posted - Episode #34: Jobs & Jawas

In this episode, Matt and Taylor are joined by Ian Landsman of UserScape. Ian is the founder of UserScape, the creator of HelpSpot, and the man behind LaraJobs. The crew discusses hiring, being a good job candidate, and most importantly: Star Wars.

You can listen to this latest episode either through the in-page audio player or by downloading the mp3. If you enjoy the show, be sure to subscribe to their feed or follow them on Twitter for more information about the show and future episodes.

tagged: mattstauffer ianlandsman jawas jobs ep34 podcast laravel jeffreyway taylorotwell

Link: http://www.laravelpodcast.com/episodes/16291-episode-34-jobs-jawas

Community News:
Laravel 5 Now Includes Authorization
Sep 01, 2015 @ 10:50:41

In the latest release of the Laravel framework (v5.1.1) they've introduced authorization handling to the native framework. This allows you to integrate permissions checks and perform policy validation both on the backend and in the templates.

In addition to providing authentication services out of the box, Laravel also provides a simple way to organize authorization logic and control access to resources. There are a variety of methods and helpers to assist you in organizing your authorization logic.

The functionality includes the concepts of "abilities" (permissions, essentially) and validate the allow/deny status based on object properties, such as Users. The documentation shows how to perform the evaluations in the controllers, user model, form requests and even in the Blade templates. There's also a section on creating policies for more complex evaluations than just one-off permission checks.

To get a feel for what the community things of this new functionality, be sure to check out this Reddit thread with feedback, both positive and negative, on how it was implemented.

tagged: laravel framework authorization functionality permission policy allow deny

Link: http://laravel.com/docs/5.1/authorization

Codecourse.com:
Social Network with PHP: Introduction (Video Series)
Aug 28, 2015 @ 11:50:47

Codecourse.com has released a video series walking you through the creation of a simple social network site with PHP, Laravel and Bootstrap.

[This tutorial shows you how to create] a social network built with Laravel and Bootstrap. Authenticate, add and accept friend requests, post to a timeline, reply to and like statuses.

The videos are pretty "bite sized" at just a few minutes each, but they walk you through all of the code you'll need to get the site up and running as well. There's 36 videos in the playlist but with the playlist on auto-play you'll go through them quickly.

tagged: playlist video tutorial series screencast social network laravel bootstrap

Link: https://www.youtube.com/playlist?list=PLfdtiltiRHWGGxaR6uFtwZnnbcXqyq8JD

Laravel News:
Installing Zend Z-Ray on Homestead
Aug 25, 2015 @ 10:45:01

On the Laravel News site there's a tutorial posted showing you how to Install the Zend Z-Ray tool on Homestead, the popular Laravel-related virtual machine environment. This tool helps with debugging applications by giving you an inside look (a sort of "x-ray") into its inner workings as it executes.

For the past week or so I have been running Zend Z-Ray in Laravel Homestead. Every time using it, new features come to light that are fantastic for debugging your apps in development! What follows is a quick preview of Z-Ray, along with all the steps necessary to install it on Laravel Homestead.

He talks some about the Z-Ray tool and the features it has to offer as well as some of the technologies it supports. He also covers some of the Laravel specific features included like project information, route inspection and current user information. He then gets into the Administration panel, what kinds of information it provides and, finally, how to get it all installed and working. It's not a super simple process but all the commands you'll need are included in the post.

tagged: install zray zend tool plugin laravel tutorial inspect

Link: https://laravel-news.com/2015/08/installing-zend-z-ray-on-homestead/

Laravel Podcast:
Episode 33: Post Laracon & Vices
Aug 20, 2015 @ 08:32:43

The latest episode of the Laravel podcast has been posted today with host Matt Stauffer and guests Taylor Otwell and Jeffrey Way - Episode #33: Post Laracon & Vices

In this episode, the team recaps Laracon, discusses a few of Matt's side projects, and details their juiciest vices.

You can listen to this episode either through the in-page audio player or by downloading the mp3 directly. If you enjoy the conversation and topics, be sure to also follow their feed and their Twitter account for announcements of future episodes. You can also check out their archive for plenty of past episodes.

tagged: laravel podcast ep33 laracon vices

Link: http://www.laravelpodcast.com/episodes/15896-episode-33-post-laracon-vices

Joe Ferguson:
On Community Silos
Aug 13, 2015 @ 10:17:30

Joe Ferguson recently attended the Laracon US conference, a conference centered around the Laravel framework and the community that's around it. In this post to his site he shares some of his thoughts about the event and something else that came up during the course of the event - the topic of "silos" in communities.

When the [JeoPHPardy] game was over I was thinking about a lot of the questions that the contestants couldn’t answer and how that relates to this being a Laravel conference. (As opposed to a PHP conference). [...] The point I’d like to make is that a random sampling of Laravel conference attendees were unable to answer medium to high difficulty PHP related questions. [...] I find it frustrating that a random sampling of Laracon attendees seem to be out of touch with not only notable PHP podcast hosts, the Framework Interoperability Group that is guiding the way they write code, and inner workings of the PHP language itself.

He goes on to share his frustration with the "silo" that it seems like the Laravel community has created, making their interactions with the general PHP community somewhat less. He points out that he's not picking on Laravel, though. He shifts the focus away from complaints about the community differences and instead emphasizes bringing people out of these silos. He includes a few practical things that can help too: attending a conference, going to a more general PHP user group, etc.

tagged: community laraconus15 conference involvement laravel silo encouragement

Link: http://www.joeferguson.me/on-community-silos/

Philip Brown:
Dealing with Exceptions in a Laravel API application
Aug 10, 2015 @ 11:57:43

In a post to his site Philip Brown shows a helpful way to manage API exceptions in a Laravel-based API application. In an API, exceptions are particularly important as they can be a hint to what the problem is and make it easier to return the correct error code to the client.

Exceptions are a very important method for controlling the execution flow of an application. When an application request diverges from the happy path, it’s often important that you halt execution immediately and take another course of action.

In today’s tutorial I’m going to show you how I structure my Laravel API applications to use Exceptions. This structure will make it very easy to return detailed and descriptive error responses from your API, as well as make testing your code a lot easier.

He starts with a brief introduction to HTTP status codes and their role in the interaction between client and server. He then gets into the "exception foundation" and how it will work, providing some basic common functionality (like throwing a 404 when a record isn't found, regardless of the type). He creates a configuration file to define the default error messages, an abstract Exception the custom instances can extend. He creates several of these as an example, such as a "UserNotFound" exception that extends the base "NotFound" exception class. He works with Laravel's own exception handlers and includes the code to catch a few different types inside.

tagged: exception laravel api application custom base handler tutorial

Link: http://culttt.com/2015/08/10/dealing-with-exceptions-in-a-laravel-api-application/

Laravel Podcast:
Episode 32: Adam Wathan Is Strong
Aug 07, 2015 @ 11:55:23

The Laravel podcast, hosted by Matt Stauffer with regular guests Taylor Otwell and Jeffrey Way, has posted their latest episode today - Episode #32: Adam Wathan Is Strong

In this episode, the crew discusses simple code, staying focused, Adam vs. The Hulk, and coding music.

You can listen to this latest episode either through the in-page audio player or by downloading the mp3 of the show. If you enjoy it, be sure to subscribe to their feed and follow them on Twitter to get updates on the latest episodes as they're released.

tagged: laravel podcast ep32 adamwathan strong simplicity focus music

Link: http://www.laravelpodcast.com/episodes/15117-episode-32-adam-wathan-is-strong

Matt Stauffer:
Login Throttling in Laravel 5.1
Aug 03, 2015 @ 08:35:57

Matt Stauffer has posted the eleventh part in his series looking at new features of the latest release of the Laravel framework (well, version 5.1). In this tutorial he shows you how to setup and configure the login throttling for your Laravel-based application with the help of the Laravel Throttle package.

Whether or not you know it, any login forms are likely to get a lot of automated login attempts. Most login forms don't stop an automated attack trying email after email, password after password, and since those aren't being logged, you might not even know it's happening.

The best solution to something like this is to halt a user from attempting logins after a certain number of failed attempts. This is called login throttling, or rate limiting. Graham Campbell wrote a great package called Laravel Throttle to address this in previous versions of Laravel, but in Laravel 5.1 Login throttling comes right out of the box.

He shows how to use the ThrottleTrait in your AuthController to have some of the "behind the scenes" work done for you. He shows you how to update your view to relay the possible error message back to the user (and includes a quick screencast of the result). He ends the post with a quick look at what the throttling functionality is doing under the covers: creating a temporary cache item based on username+IP address as a "lock" indicator. Finally, he points out two properties you can find on the auth controller to give a bit more detail on the current configuration: lockout time and max login attempts.

tagged: laravel login throttle tutorial authcontroller laravelthrottle package cache username ipaddress

Link: https://mattstauffer.co/blog/login-throttling-in-laravel-5.1

Laravel Podcast:
Episode 31: Public Speaking Preppers
Jul 29, 2015 @ 10:17:41

The Laravel Podcast, hosted by Matt Stauffer with guests Jeffrey Way and Taylor Otwell, has posted their latest episode - Episode #31: Public Speaking Preppers.

In this episode, the crew discusses preparing for conference talks, vacationing, and dreamy destinations!

You can listen to this latest post either through the in-page audio player or by downloading the mp3 directly. Be sure to subscribe to their feed or follow them on twitter for more information about the latest episodes as they're released.

tagged: public speaking preparation laravel podcast ep31

Link: http://www.laravelpodcast.com/episodes/14331-episode-31-public-speaking-preppers