Support the ongoing development of Laravel.io →

4,311 Threads

User foreign User table

Hi all I need create user table with foreign. The migration run correctly, but How can define relati...

0 Likes
2 Replies

Migrate codeigniter queries to laravel

Hi, I have very very long file contains a lot of queries was write in CI and I wondering if there a...

0 Likes
0 Replies

How to change table in belongsToMany?

How can I replace existing relation? At this moment, I have tables: requirements user_requirement...

0 Likes
1 Replies
posted 8 years ago

GroupBy not working

Until I upgraded and moved servers, queries that used groupBy were working. However, I'm getting an...

0 Likes
1 Replies

Eloquent groupBy make “SQLSTATE[42000]” with valid SQL query in Laravel 5.3

Hi, I have a strange problem with Eloquent which I'm trying to do the following: $this->node = \D...

0 Likes
0 Replies

Bit of a kickstart in advice needed - @foreach loops

Hi there, =) I'd like to keep this short and sweet. Just having some issues with the best way to ta...

0 Likes
4 Replies

Algolia ApplicationID?

How do I get an ApplicationID? When I'm trying to use Scout, it throws an error asking for one but I...

0 Likes
0 Replies

access trait variable from controller

good day all, i am currently working on a little project for this group of gamers. They asked me to...

0 Likes
4 Replies

Error echo data from hasMany-relationship

Hi, I am new here at Laravel.io and I have just started learning Laravel. I have the following table...

0 Likes
0 Replies

Best practice on DB changes listeners

Hello, I'm looking into best practices to implement/use way of listening if DB is changed to fire a...

0 Likes
0 Replies

Working with a table sorted by a numeric 'position' column.

In my database, I have a table of items, sorted by a numeric "position" column. Each posit...

0 Likes
1 Replies
posted 8 years ago

Query Builder unique

hi, i work with slim and how i can do a Query Builder unique columns in illuminate (5.1) $users =...

0 Likes
4 Replies

Correct design for product variants

Hellow . I have product table that right now has two , many to many relationship with sizes and colo...

0 Likes
2 Replies

Exception "Perhaps you meant to reference the table alias "laravel_reserved_0"" inside scope function.

Hi everyone. Laravel 5.2, latest update. I receive strange bug while using Eloquent subqueries and s...

0 Likes
0 Replies

Is it possible to get metadata describing the database schema of an Eloquent DB?

LateIy, I created a library that exploits the Doctrine Metadata to send a map of the database (field...

0 Likes
5 Replies
posted 8 years ago

Replicate model with relationships

Hi there, I want to replicate a template with all his relations ships with Eloquent. I did this and...

0 Likes
0 Replies

Iterating through the month field in the database and check with the current month

I have db table called "Payments". I am trying to find if any customer have missed any pay...

0 Likes
0 Replies

Advanced Eloquent query from morphToMany question

I have an Eloquent query question of approach. A Story hasMany Chapter. Story and Chapter are Taggab...

0 Likes
1 Replies
Solved

Custom validateCredentials logic

Hi there, I'm quite new in Laravel since I've started learning it a couple of months ago. I managed...

0 Likes
5 Replies
Solved

Laravel randomly connects to different database

I have no idea how to google this since I mostly get tutorials about setting up multiple database co...

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.