PHPNews

Laravel Accessors and Mutators

Laravel accessors and mutators are custom, user defined methods that allow you to format Eloquent attributes.  Accessors are used to format attributes when you retrieve them from the database, while  mutators  format the attributes before saving them to the database. Defining an accessor Syntax for …

Continue reading »

Written by Bosnadev – Code Factory - - Aggregated on Thursday December 17, 2015


Using Repository Pattern In Laravel 5 – Eloquent Relations And Eager Loading

Preface Before we go to the main topic of the article, I’ll give you a short heads up for some design problems you may face. Recently one of my clients complained that some pages open very slowly. When I say very, I mean incredibly slow. So I’ve decided to debug that page and what I saw shocked me. Query section was …

Continue reading »

Written by Bosnadev – Code Factory - - Aggregated on Thursday March 26, 2015