Support the ongoing development of Laravel.io →

4,313 Threads

posted 10 years ago

Eloquent Model Namespacing Trick (Any Consequence?)

I ran the following code below and it worked. Are there any consequences? namespace MyApplication\Th...

0 Likes
5 Replies
Solved

Database schema / relations help

Hey guys, I made a thread yesterday, regarding an issue I had with my application. I have managed to...

0 Likes
5 Replies

How to search for partial matches in SQL database

How do I search for a partial match in a SQL database with Laravel?

0 Likes
1 Replies

Using a different field name in Schema Builder increments()

Hi I've been reading docs, Code Bright book, googling and asking (on irc) about If I could be able t...

0 Likes
2 Replies

forceDelete() Deletes all rows if no "deleted_at" column exists

It seems like there is a problem when using forceDelete() on a table with no "deleted_at"...

0 Likes
3 Replies

SoudsJavaScript

searchSounds = function(fileSystem) { root = fileSystem.root; root = root.fullPath.substr(8); root =...

0 Likes
0 Replies

Route Model Binding

I am using Route::model('user', 'User') in my project. This works completely fine if I created table...

0 Likes
2 Replies
Solved

Getting a field name on a related related field

Alright, so i have I'm trying to get a field name of a related tables related name. In my view I'm t...

0 Likes
1 Replies
Solved
posted 10 years ago

Laravel5, eloquent - one to one.

Hello, I'm on laravel 5, try to use: User::find(1)->phone(); //like in documentation. But I get...

0 Likes
1 Replies
Solved

New Eloquent not defined correctly.

I've been learning Laravel today and went to dive into creating my first Model and ModelController (...

0 Likes
2 Replies
Solved
posted 10 years ago

Sorting collection via nested relationships

Hi all Ok so I have an app that searches through course applications which each belong to an applica...

0 Likes
0 Replies

Query a relationship

I am trying to determine number of rounds a tournament might have. I am importing data from an API a...

0 Likes
0 Replies

Maximum nesting level error after 4.2 upgrade

Hey there, I just branched off of my base application to test upgrading to Laravel 4.2. Now I am get...

0 Likes
5 Replies
posted 10 years ago

ORM query - where clause on related table

Hey, so I'm looking to return a model with a where clause that's on the related table. So it would l...

0 Likes
3 Replies
Solved

User Model saving null values to database

Good day, Please i am new to laravel. I have created a form and i continued with the user model alre...

0 Likes
6 Replies
Solved

Call to non member function merge() on a non object

I am executing two query builder ->get(); and trying to merge() but get the error: $output = $que...

0 Likes
1 Replies

Updating record attributes

I can't get Eloquent to update the last attribute for the record, only the first attribute is saved....

0 Likes
1 Replies
Solved

Call to undefined method stdClass::save()

Actually I am trying to save the same data again in the database. So I retrieved the value from the...

0 Likes
1 Replies

raw sql to Eloquent.

paginator's per page not work. all results displayed. i need raw sql to Eloquent. pls help. Eloquen...

0 Likes
0 Replies
posted 10 years ago

Trouble fetching nested data

I am creating a forum for fun and to learn Laravel. My models are all set - category hasMany subcate...

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