A place where all members can share their Laravel & PHP tutorials, links, news, packages, etc.

Create New Post Contact Us

API Token Authentication in Laravel 5.2

I recently had the need to write a small url shortening application. I am aware that this problem has been solved quite a few times before, but what is being a developer if not reinventing the wheel just for the heck of it? Custom CMS anyone?

Know

7 Key Laravel 5.2 New Features & Improvements

Laravel is the most demanding framework in the PHP community with state of the art features and plugins. It is used for rapid application development with tested functionality and is maintained by a big community, having previous flagship framework k

Laravel 5.2: Morph Map

A new undocumented feature in laravel 5.2 was introduced: The Morph Map for morphTo relations.

We all know the polymorphic relations, they are a type of relation to link multiple models with one common model. For instance if you have a User and a

Importing demo data into a Laravel application

The on-boarding experience that your users experience when they are first getting to grips with your application will make or break you.

Trying a new application is time consuming and will require a lot of investment and so your potential customer

Host Laravel 5.2 in Openshift for Free

lets cut crap about intro and other stuff and head to main topic :D

Steps:

1. Create new account or login existing account in [Openshift][1].

2. Create new HHVM application or go to this [HHVM in Openshift][2] and set your domain name and ap

A Laravel factory with starting and ending dates

Laravel provides a convenient way to seed your database with fake data for testing purpose using a system of factories for your Eloquent models.

This is a demonstration of how to create a factory for a model that is using starting and ending dates

Laravel and Content Negotiation

Here's a little bit about content negotiation.

An HTTP client, such as your browser, or perhaps jQuery's ajax method, can set an Accept header as part of an HTTP request.

Accept Header -------------

This header is meant to tell th

AND-OR-AND + brackets with Eloquent

Eloquent is a great thing – you can build your query step-by-step and then call get() method. But sometimes it gets a little tricky for more complicated queries – for example, if you have multiple AND-OR conditions and you want to put bra