Support the ongoing development of Laravel.io →

4,313 Threads

Eloquent, make rank upgradable!

https://laracasts.com/discuss/channels/eloquent/eloquent-make-items-upgradable Here is more details...

0 Likes
0 Replies

How do I manually create a Paginator in 5

Hi I've looking round for a while now but cant figure this out how do How do I manually create a Pag...

0 Likes
7 Replies
posted 6 years ago

Can't use private access on Eloquent's local scope

I'm japanese student and new to Laravel. I used the Eloquent's local scope like this: use Illuminate...

0 Likes
3 Replies

SetConnection doesn't work in a non-static eloquent context

Hello, I'm trying to do this (Laravel 4.2) : In database.php 'default' => '', In a function $mod...

0 Likes
4 Replies
Solved

How to solve the growing bloated ORM?

At first, my model code may be clear, but later, more and more model associations, more and more eve...

0 Likes
0 Replies

Has Many Through Relationship Depth

Hey Guys, I am just trying to understand the depth of the has many through relationship as well as i...

0 Likes
4 Replies
Solved
posted 7 years ago

Eloquent Polymorphic relationship and eager loading...

Hello there, I'm just wondering a thing... I would like to eager load relationships through a polymo...

0 Likes
2 Replies

Laravel 5.6 Separate Image Upload

How do I upload two separate image files to different file locations and save to database? Everythin...

0 Likes
0 Replies

Laravel Eloquent Relationship

$this->belongsTo('\App\Models\Thing','foreign_key', 'other_key'); Can anyone please explain this...

0 Likes
2 Replies

call to undefined method and parse error

I have 3 tables: users, category and profile tables. The profile table has user_id and category_id a...

0 Likes
1 Replies
posted 6 years ago

Models propeties and where are they?

I'm new to Laravel. I am trying to understand if I create a model called Cat, and the cat has a prop...

0 Likes
3 Replies

ManyToMany Relationship With Third Table

Hi, Using Laravel 5.5 I am trying to design an incident management system which has bespoke requirem...

0 Likes
1 Replies
posted 6 years ago

sync() with where on the intermediary table

Hi, When using sync() a query like this is generated: update `course_group_course` set `year` = ? wh...

0 Likes
0 Replies

Laravel Search WHereHas JUST when has Value

Hello , I have a question . I want to search Tags ( Many to Many ) in My post , JUST if I select tho...

0 Likes
1 Replies
Solved
posted 6 years ago

how to change query type of eloquent with method

i use laravel and my db is sql server . when use with method on eloquent , it make a query has where...

0 Likes
1 Replies

Getting relation subquery

Hello! There is some problem with ordering eloquent query results by field from related table. Every...

0 Likes
1 Replies

Retrieving 5 million records from database and comparing

Hello Everyone, I have a requirement of retrieving 5 million records from MySQL database and compari...

0 Likes
4 Replies
Solved

Get all team members job sites if current user is the owner

Hello, i am plugging away at my app and i am required to have team owners to be able to edit / updat...

0 Likes
0 Replies

InvalidArgumentException: Unable to locate factory with name [default] [App\Company].

Here's what my very simple model looks like: <?php namespace App; use Illuminate\Database\Eloqu...

0 Likes
1 Replies

Как правильно составить запрос к базе?

Есть таблица produkts. У этой таблицы есть связи "многие ко многим" с 3 другими таблицами...

0 Likes
0 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.