Support the ongoing development of Laravel.io →

3,323 Threads

posted 10 years ago

Laravel eloquent relationship

I have a table ranks as position player_id 1 77 2 99 3 12 and one more table players as id na...

0 Likes
4 Replies

Best practice for validating relationships using Ardent?

I'm working on an application containing log messages and users. The respective models are LogMessag...

0 Likes
0 Replies

Validation inside a mutator/setter

I was reading the following: "Validation should happen within the context of the setter prior t...

0 Likes
0 Replies

Where does those calls come from?

Hi, I installed php-debugbar and this is the output I get. select * from `pages`133μs256KB3000000005...

0 Likes
2 Replies
posted 10 years ago

Help with relationships.

Hi everyone I am having a slight issue with relation ships (honestly I think it's just my thick skul...

0 Likes
2 Replies

Handling Unique Short Code Representitives

Lets say I have a list of Status 1 - Pending Submit 2 - Submitted 3 - Extra Images Uploaded 4 - Com...

0 Likes
1 Replies

SQL Storing Searchable Meta Data

I am creating a bug tracking tool for mainly personal/in-house usage. BugSnag is kind of the motivat...

0 Likes
6 Replies

dynamic SEO URL wanted

Hello, I'm a newby with Laravel but I succeed to make pages and route them with a nice URL But I'm d...

0 Likes
3 Replies

Login Problem

I have database insert for login, But when login correct username & passwors then show it ErrorE...

0 Likes
1 Replies

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

I have a server running php 5.3.22. When I make a call to an eloquent model I get an error: $email =...

0 Likes
2 Replies

pivot table with 3 columns

Hi Models : There is Party (should be renamed 'game') User can register to Party then user has a reg...

0 Likes
1 Replies

Followers posts list

Hi, I want to create a sort of basic twitter clone as a learning project and wondered how you would...

0 Likes
0 Replies

Can I query the results of a query?

This isn't working, and maybe it's not possible, or maybe I'm close? $allcars = $user->cars()...

0 Likes
2 Replies
posted 10 years ago

FULL Text Search with order by Score.

I have this in my current app that I am moving to Laravel. $sql = "SELECT *, MATCH(title,captio...

0 Likes
0 Replies

How create this SQL with laravel

Anybody know how create this SQL with Query builder: SELECT * FROM (SELECT * FROM 005_056_cola_envio...

0 Likes
2 Replies
posted 10 years ago

Composer update on 4.1.* breaks eloquent queries

After I ran composer update which required laravel 4.1.* all my Eloquent queries failed. The toArray...

0 Likes
3 Replies

What's the best way to troubleshoot a controller problem?

In my controller I'm trying to delete a record from a table and the only message I get back to the c...

0 Likes
2 Replies

Querying ORM with WHERE clause

Howdy. I have nested resource controllers, like so: http://example.org/v1/jobs/1/departments My issu...

0 Likes
1 Replies

Laravel specific Sublime Text 3 snippets

Anyone knows where I could find some Laravel specific Sublime Text 3 snippets? For example creating...

0 Likes
1 Replies

Change associated table in model with setTable() don't works

Hello community, I try to get data via one model from two different tables, so I want to change the...

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.