Slim is a full-featured, open-source PHP micro framework that helps you quickly write simple yet powerful web applications and APIs. It comes with a sophisticated…
7 CommentsTag: Eloquent
The Eloquent ORM makes it incredibly easy to interact with a database. Today we’ll look at how we can use Eloquent to interact with our…
2 CommentsIn this post, I will show you a simple method to log each and every Eloquent Query your application executes. We gonna log queries to…
Leave a CommentIn this post, I would like to show you creating polymorphic relationships in the Laravel5 application. Probable polymorphic relationships are the most advanced eloquent relationships…
Leave a CommentVery Laravel developer should know this little trick, using this trick you can define complex conditions on the eloquent relationships. This method chaining helps you…
Leave a CommentOne of the Laravel 5 awesome feature is Attribute casting. Casting attribute means changing the attribute values to a particular type. for example Boolean, integer,…
Leave a CommentSometimes you may need to eager load a relationship after the parent modal has already been retrieved. For Example this may be very useful if…
Leave a Comment