Support the ongoing development of Laravel.io →

4,311 Threads

Pagination: Undefined property: Illuminate\Pagination\Paginator::$username error

AbsractRepository.php /** * Get Results by Page * * @param int $page...

0 Likes
4 Replies
Solved

Object created but still producing "Call to a member function associate() on a non-object"

Error message: http://puu.sh/d4kdm/4a084d1170.png This has to be something stupid, I even have the t...

0 Likes
3 Replies
Solved

Deleting A Child Table Row

I currently have the following destroy function for my user's controller. When the destroy method is...

0 Likes
4 Replies
Solved

Controller Only saving last data in array into database

Have asked this question before but it wasn't answered.So am asking again.I have a table subjects wi...

0 Likes
5 Replies

Combine JOIN data to one result

Hello everyone, I'm new at Laravel and have a question about combining 2 JOIN results. At first, I h...

0 Likes
5 Replies

Eager loading with circular relations -> how to optimize?

Hello! I have got the following situation: There are two classes A and B They are related many to o...

0 Likes
0 Replies

Laravel eloquent relationships help?

I have a table in my database called Logs which has a user_id field which links in with the users ta...

0 Likes
1 Replies

Querying based on Input. If input is empty, get all.

Hi ya, I have a calnedar (FullCalnedar) where the user can filter down results based on a few params...

0 Likes
1 Replies
Solved

Is there an "insertSetTimestamps" Method to update timestamps in Seeder

I have a lot of tables that use the $table->timestamps(); in the migration. When I build my seede...

0 Likes
3 Replies

Eloquent: get one by one

I have two table Users --- id --- username --- group_id Group -- id -- name I tried get all users a...

0 Likes
5 Replies
Solved

Separate DB for users?

I have a laravel script installed on my server - I don't know much about this framework (or php for...

0 Likes
1 Replies

Form Input for multiple Models

Hi, i looking for an solution for the following issue: I created a form where i need to give the opp...

0 Likes
2 Replies

Eloquent ORM Eager loading too eager

Hi, I`m trying to return only certain columns from the products table : <?php class Promo exten...

0 Likes
5 Replies

Organizing CRUD functions in Controller, or Model?

Trying to rehaul my use of controllers and models. At the moment, I have a controller for: People/P...

0 Likes
0 Replies

Advanced query using Eloquent

Given this model: I have defined all relationships properly using Eloquent ¿How can I get just ge...

0 Likes
4 Replies
Solved

Using Auth::attempt with other field as "or"

Hi, Currently , we have below scenario for login $input = Input::all(); Auth::attempt([ 'usernam...

0 Likes
2 Replies
Solved

Adding a "reference table" to a pivot table

Hi guys at the moment I'm hardcoding in the 'unit' column on the 'ingredient_recipe' table. I want t...

0 Likes
3 Replies

Laravel 4 - saving a hasMany relationship

I have the following relations: Discount: <?php class Discount extends Eloquent { pro...

0 Likes
2 Replies
posted 9 years ago

Obtain related object in many to many

I need to obtain the object that are check in "$user->services->contains($service)"....

0 Likes
1 Replies
Solved

Querying a many-to-many relationship

Hello, being new to Laravel, I'm trying to perform a query in Laravel 4's query builder or Eloquent....

0 Likes
3 Replies
Solved

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.