Support the ongoing development of Laravel.io →

4,311 Threads

posted 10 years ago

Problem with laravel.

Hi guys, I have a big problem with laravel eloquent model. When I create my application and i create...

0 Likes
1 Replies
posted 10 years ago

Eloquent interdependent relationships

I have a case where I have a Department and Users. A User belongsTo a Department. But a Department a...

0 Likes
1 Replies
Solved

Empty column when inserting data

Hi, When I create a new item, I always have the column 'link' empty in my table. The table's column...

0 Likes
4 Replies
Solved

How do I implement delete messages function in a laravel chat app?

I have a laravel chat app, is working fine and these are the relationships declared in the model. U...

0 Likes
0 Replies

Foreach in query builder?

Hi! How can i build a query eg: $products = Product::whereHas('tags', function($query) use($arrays)...

0 Likes
0 Replies

Concat results from a query

I'm trying to concat the results of a database query and return them as a variable that I can insert...

0 Likes
2 Replies
Solved

Model use in routes.php

I have this in my routes.php at the moment, I assume this is not the best practice. Route::get('port...

0 Likes
5 Replies

merging data of different data sources (database and REST api)

Hi, I've managed to setup a a database connection (eloquent model) and to display data of one table...

0 Likes
1 Replies

getting project from bitbucket (Don't think my last attempt worked)

I uploaded a laravel project I was working on to bitbucket and a friend downloaded it, but on his co...

0 Likes
0 Replies
posted 10 years ago

How can I get a single attribute for each element in a collection?

For example, I have a many-to-many table with blogposts and tags, as per the tut here; http://vegibi...

0 Likes
2 Replies
Solved
posted 10 years ago

belongsToMany ignore accessor

Using belongsToMany custom accessor methods are ignored. Why?

0 Likes
0 Replies

dynamic form creation

I'm trying to figure out a way to elegantly generate a form when creating a new entry based off a mo...

0 Likes
1 Replies

Some question and thoughts from Rails -> Laravel 4.x immigrant [Validation, Usability, Functionality, API]

Hi. I'm currently using Ruby on Rails stack and thinking to move to Laravel 4.2 because of extreme p...

0 Likes
0 Replies

Laravel : Call to undefined method Illuminate\Database\Query\Builder::detach()

I'm trying to delete an object model Studio which hasMany model Member and hasMany model Game and se...

0 Likes
0 Replies

How to get json using jquery Eloquent with relationships

Hello friends this is the situation: I am working with Eloquent and relationships and need to get a...

0 Likes
2 Replies
posted 10 years ago

Custom eloquent constraints

I'm not sure what title to give this thread. Imagine that the following eloquent query is build. $wo...

0 Likes
1 Replies

Duplicates on querying db for products based on filters data

I have a simple filtering on my catalog. It allows me to choose the product based on its attributes...

0 Likes
2 Replies
Solved
posted 10 years ago

Build JOIN query with Elequant

Can anyone help me with building this query? I want this: SELECT COUNT(ad_want.id) AS wants,...

0 Likes
0 Replies

Eloquent swapping other data into new insert when it shouldn't be

Hello all! I'm having a rather frustrating time with an error and can not seem to work it out. I h...

0 Likes
2 Replies
Solved

SQLite Database on Capsule does not update

Retrieving records works correctly but updating items through save() does not do anything. It doesn'...

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.