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

Create New Post Contact Us

Pivot tables and many-to-many relationships

Today I want to talk about a feature of Laravel which is really useful but can be potentially difficult to understand at first. Pivot table is an example of intermediate table with relationships between two other “main” tables.

Real-li

Active menu state using route attributes

I bet you have a headache when you need to mark some menu item as active. Is there any good way to solve this? Yes, there is – route attributes.

What is route attributes? Standard route attributes are like “prefix”, “namesp

Laravel Searchable – the best package for eloquent

In this first post of a series about https://github.com/jarektkaczyk/eloquence – the package that allows working with eloquent models in even simpler manner – I’m going to introduce you to the searchable feature of the builder class

Explore the World of Relationships in laravel 5.1

In a real-world context, everything is connected; for example, a car has an owner, a book has an author (or maybe more than one), or an e-commerce order is related to one or more products that a customer (another relation!) has ordered.

Everything

phpGrid, Laravel 5 and Bootstrap 3

This tutorial will begin by walking you through the integration of the Laravel 5 and Bootstrap 3 themes. Afterwards, we will show you how to add PHP datagrid. If the Laravel and Bootstrap theme are already up and running on your server, you can skip

Entrust package and Laravel 5.1.11+

Since Laravel 5.1.11, Laravel has provided the new authorization services (ACL) out of the box. That's great.

The bad news is, Entrust doesn't play well with the new feature (Entrust conflicts with Laravel 5.1's new built-in Authori

Accessing distant relationships in laravel

Another really interesting Eloquent feature is the possibility to define (and then access) a distant relation, using the hasManyThrough() method.

What? I see you are a little confused. No problem: let’s take another example, which is a littl

Building Real-Time Laravel Apps with Pusher

Pusher is a hosted service that makes it super-easy to add real-time data and functionality to web and mobile applications. This is a 2 hour workshop that will show you how to add real-time features to your Laravel apps with Pusher.

Functional testing with Behat in Laravel 5

While phpspec follows the BDD by specification and is useful for specification and design in isolation, its complimentary tool Behat is used for integration and functional tests. Since phpspec suggests to mock everything, database queries wouldn&rsqu

Descending the code in Laravel 5

In this section you are going to read, I will go through the Model class and analyze it a little deeper than the usual. Nothing so advanced, so don’t worry: I will just use the class code to show you what you can do with your models.

Take it