Support the ongoing development of Laravel.io →

4,300 Threads

Algolia Scout Search in multiple indices in single API call

How can I search Algolia using Laravel/Scout in multiple indices in single API call using multiple q...

0 Likes
0 Replies

How laravel manages MySQL variables?

If I do DB::statement("SET @foo := 1;"); DB::select("SELECT @foo;"); I get the...

0 Likes
3 Replies

How to Splitting up nested Foreach Loop

I want to implement domain.com/section/slug format in my website.(currently it like - domain.com/sec...

0 Likes
1 Replies

Adding Cache wrapper for model

I am fairly new to Laravel and I have been trying to find the best way to create a cache wrapper for...

0 Likes
0 Replies

Select Query Posts with Likes ( Like Facebook )

Hello , I have a question , I am developing a website like a facebook . It will have POSTS and a Use...

0 Likes
0 Replies

Laravel 5.7: User-tables in other database

Hi, In my Laravel project, my users-table and password_resets-table are located in the database Inte...

0 Likes
2 Replies
Solved

Defining Two Relationships Between Models

I'm learning Laravel, and really OOP in general. I've followed several YouTube tutorial series, that...

0 Likes
0 Replies

Create new database and tables on the fly

Hi everybody. I want create dynamically new database, database user with privileges, tables in new d...

0 Likes
8 Replies

Renaming the pivot table Columns .

i have many to many relation in my database and i can't change the default name of the pivot table C...

0 Likes
0 Replies

Cannot insert third pivot column with sync method

My question is similar to this thread : Laravel relationship with a 3 column pivot table But it seem...

0 Likes
0 Replies

Using DB or Eloquent I got error Unsupported operand types

Excuse me, is there anybody can help me? 3 days, I still cant find any results by searching from int...

0 Likes
0 Replies

Get all relationships in many-to-many polymorphic

Hi, I am trying to build a form with dynamic fields. Fields are based on select box choice and can d...

0 Likes
0 Replies

Generate relation functions from array

This is a example of my model relation code today: public function Discipline() //relation { ret...

0 Likes
5 Replies

Order After Union an errors occurs

Script MySQL - Works correctly select * from ( (select agregados.nome as agregado, recursos.tipo, li...

0 Likes
0 Replies

Many-to-Many relation not working properly

I have three tables: Tournaments, Participants, Users. The structure is: Tournaments: -Id -D...

0 Likes
1 Replies

help secure query with like

Hi, this query can be injected using this text 'a% ' (remove quotes) $courses = Course::select('id',...

0 Likes
1 Replies

Laravel Outputs Different Output Than MySQL For Query

Hi, I generated a MySQL query which gives the correct output I require (tested on MySQL Workbench)....

0 Likes
1 Replies

Multiple Foreign Key Referencing to same primary key

Hey guys, I'm new to laravel and i have 2 tables Userand Task. Inside my Task table i have CreatorID...

0 Likes
0 Replies
posted 10 years ago

hasManyThrough with Many-To-Many?

Hi, Is it possible to do a "hasManyThrough" with "Many-To-Many" relationship (pi...

0 Likes
26 Replies

Upvote and Downvote System

i am creating a website where user will post a comment,i want to create a upvote and downvote syste...

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