Laravel 5.1

Laravel Speed and Performance Optimization 101 – The Guideline

I am working with a pretty heavy Laravel site with many requests and lots of Eloquent/SQL calls. Even though the high-memory and high-cpu VPS, I felt there is room for performance improvement. That is why I would like to write out some improvements to speed up Laravel: 1. Use Database or Redis for cache and sessions […]

Laravel Speed and Performance Optimization 101 – The Guideline Read More »

Laravel Eloquent Triple Pivot Relations

Solving the HasManyTriple problem Sometimes you find yourself in the situation where you have a table like shop_country_category, which has the following structure: countries – id – name shop – id – name products – id – name shop_country_product – id – country_id – shop_id – product_id In this case a shop has specific products

Laravel Eloquent Triple Pivot Relations Read More »

Laravel 5.1 logout custom message and redirect to previous page

When you’re logging out in Laravel 5 and 5.1 the AuthenticatesUsers is called and the getLogout method. Since, it’s in the Illuminate directory it’s not nice to write in this file directly. It’s better to rewrite the getLogout method from an Auth\AuthController. Normally AuthCntroller, it might use this traits: use AuthenticatesAndRegistersUsers, ThrottlesLogins; Now we’ll rename

Laravel 5.1 logout custom message and redirect to previous page Read More »

Laravel 5 socialite with Facebook integration

Would you like to offer a Facebook login functionality next to a regular e-mail based login? This is a tutorial to achieve that with Laravel 5 and the Socialite plugin. This tutorial is based on Matt Stauffer’s tutorial. First of all pull in Laravel Socialite via composer: composer require laravel/socialite Create the users and password_remember

Laravel 5 socialite with Facebook integration Read More »

en_USEnglish
Scroll to Top