Support the ongoing development of Laravel.io →

4,311 Threads

Dynamic EagerLoading

Laravel Version: 5.5 PHP Version: 7+ Database Driver & Version: mysql 5.7+ ###Scenario: I have...

0 Likes
1 Replies

How to Query In three tables?

I have four tables. option_groups options product_options product_images Tables Structure option_g...

0 Likes
1 Replies

Triggering model event when modifying relationship

I am trying to set up my models such that a few of them can get stored in a cache. What I'm trying t...

0 Likes
5 Replies

Eloquent Relationship Questions Laravel 5.5.21

So I want to display teams and their league stats, exactly like you see on a major sports site when...

0 Likes
0 Replies

How to Make a Review by Buyer For the Product?

I want to ask sir, I am beginner in laravel, I am making an online shop project with laravel but the...

0 Likes
1 Replies

Relationship count

Hey guys, I have done some research on the forum/google and could not find the answer to this proble...

0 Likes
1 Replies

Extend Eloquent Model with created_by, updated_by, deleted_by

Hi@all, i'm new at Laravel, and now i'm building my first app. My app is a database to store address...

0 Likes
6 Replies

REST Authentication model?

Hello, What's the best model for authentication in REST services, I have been checking out this tuto...

0 Likes
5 Replies

Check extension of eloquent out for retrieving its attribute

I decided to extend eloquent a little bit in order to improve performance for my application. It see...

0 Likes
0 Replies

Asset URL for CDN

I have all my public files uploaded to Amazon S3 soon cloudfront. How do i manage my URL to use CDN...

0 Likes
4 Replies

Laravel collection class bug in avg() and average()

Illuminate\Support\Collection avg() and average() function gives unexpected result on collection...

0 Likes
1 Replies

Laravel column modifier method "after()" not working

I am using Laravel 5.4 and Postgres I need to create a new column after a particular column, so I ad...

0 Likes
1 Replies

Querying a model using conditions in relationship

Hello I'm making a webapp with categories, pages and banners that can be displayed on pages based on...

0 Likes
2 Replies
Solved

Constraining Eager Loads with column from parent Model

Hello Everyone, I am looking for something like this /** * Get offer related to the request. */ pu...

0 Likes
2 Replies

How to observe Many to Many relation attach()/sync() action?

How to observe Many to Many relation attach()/sync() action? For this: I have Tag model and Post mod...

0 Likes
5 Replies

Extending spatie laravel-activitylogs Activity Model and add

I'm working on Laravel 5.4 application and trying to install spatie/laravel-activitylog v1.16 (old v...

syofyanzuhad liked this thread

1 Likes
0 Replies

DB Relationships to track versions of an article

I’m struggling to get the relations right for some reason on some tables I’m trying to setup today....

0 Likes
1 Replies

Eloquent model hinting in PhpStorm works within php block but not in blade

Hi, I'm using PhpStorm 2016.3.3 version and in my dashboard.blade.php file, I have the following cod...

0 Likes
4 Replies
Solved

Return only if relationship where query is true

Hi! I have a relationship with Users and Events. Its a one to one. But I am trying to return all use...

0 Likes
7 Replies

Help with Eloquent Search Validate Input Simple Style

I have a very simple Eloquent search form built into my application and I want to prevent when a use...

0 Likes
4 Replies

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.