Support the ongoing development of Laravel.io →

3,604 Threads

Who's online Laravel 4 Session

Hi everyone, i'm trying to implement in my Laravel 4 app, a script that shows me which users are onl...

0 Likes
8 Replies
posted 10 years ago

Paginating an Eager Loaded Relationship

public function getCategory($category_id) { $category = Category::with(['products' => fun...

0 Likes
3 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
posted 10 years ago

Image upload to SQLite

Hi. I have looke all over github but i didn't manage to find an app that uses SQLite and image uploa...

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

L4 external auth

Hi, my L4 apps runs in MySQL, and all my user accouts are in SQL-Server. I would like create a basic...

0 Likes
1 Replies
posted 10 years ago

Concating Issues

Hello Forums, I seem to be having a wee bit of trouble, well, I mean, a lot of trouble with attempti...

0 Likes
6 Replies

Event trigger and validation

Hi, When I save a model, I want to validate its contents; I use a validator and a protected array of...

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

[Benchmarking] Using your public API internally, too

Hey guys I had some doubts and concerns about using an HMVC approach with Request::create() so I did...

0 Likes
1 Replies

Integrating Databases with Exotic Column / Table Names & Laravel Auth

How well does Laravel (or more so PHP) handle integrating with databases where the table/column name...

0 Likes
0 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
posted 10 years ago

How would one run a `SELECT` on a subquery using Fluent?

I'm currently building out a query using Fluent, and it works correctly - but I'd like to run SELECT...

0 Likes
1 Replies
posted 10 years ago

rolling back a previous migration

what i need to do is rollback a migration i did a few days ago. is this possible? i've read the docu...

0 Likes
1 Replies

Pro-active Caching: Looking For Ideas

I have built a business application using Laravel that utilizes several very large datasets. There i...

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

How can I cache all data in Eloquent

How can I try to using cache for all of Eloquent query. Example: $users = User::remember(10)->get...

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.