Support the ongoing development of Laravel.io →

4,599 Threads

One to One Relationship with two fields(columns) connection, how?

I have three table: table HouseHold(HouseHoldID) table Member(HouseHoldID,MemberID) table PatientCa...

0 Likes
2 Replies

Can I improve my DB::select query?

Hi, It seems a bit overkill what I have, after some searching I finally got my query working but not...

0 Likes
0 Replies

Best practice - place large queries in model or controller?

Hi, I'm quite new to laravel, so trying to get the hang of the best practices at the moment. Today I...

0 Likes
7 Replies
Solved

Ordering 'Post's in a 'Category' based on sum() of 'Vote's

I have 3 models... Category, Post, and Vote In my category view, I am showing an index of all Posts...

0 Likes
0 Replies

Building queries with pivot table fields

I have a User model, and an Item model. Each Item has one Category, and each User has a "benlon...

0 Likes
3 Replies
Solved
posted 10 years ago

Database Configuration Homestead

I'm trying to connect to my database from my laravel application. But I just seem to get the wrong c...

0 Likes
0 Replies

Add an array to a Eloquent\Collection

Salam, I want to add some new elements to a Eloquent Collection with the add public function, but I...

0 Likes
2 Replies

Planning my first project: Migrating a text-based log file to a Laravel Application

I would like to create an application that logs GET data directly to the DB through Laravel from URL...

0 Likes
1 Replies

Baum Nested Set, share to view triggers hierarchy queries

I'm using the Baum Nested Set package, which works very well. In one place in my code, I need to lis...

0 Likes
0 Replies

Take not working with Eager Load Constraints

Problem I'm trying to use Eager Load Constraints with a take condition it keeps returning null in th...

0 Likes
0 Replies
posted 10 years ago

SQL statements prepared wrongly?

Either there is a quite dangerous bug in laravel or I just made a stupid assumption. I believe that...

0 Likes
0 Replies

Eager loading with multiple relations

I wish to list a member with events he/she participates, and his/her collar numbers (idnumbers) for...

0 Likes
5 Replies
Solved

unit test General error: 1 Cannot add a NOT NULL column

Hi, be patience I'm quite new at unit test in laravel I've this migrations use Illuminate\Database\S...

0 Likes
0 Replies

Eloquent query relations.

Hi, can someone halp me with this problema. I want load events based on city_id stored in locations...

0 Likes
0 Replies

Eager loading error - Trying to get property of non-object

I'm trying to utilize the eager loading feature in laravel but it doesn't work as i expected. When i...

0 Likes
0 Replies

How to make search with pagination?

I want create a gallery. How can I do?

0 Likes
1 Replies

Help with ordering related models

I'm trying to order my data, by the "belongsTo" association. Model: Contact BelongsTo: Age...

0 Likes
0 Replies

Relationships issue (maybe me doing something wrong HELP!)

I have the following controller and models. Controller public function index($slug) { $d...

0 Likes
6 Replies
Solved

Build query with ckeckboxes values.

Is there a way to build a query on checkboxes values? I have 7 checkboxes, then only if a single che...

0 Likes
0 Replies
posted 10 years ago

Newbie to Laravel

I would like to simple database application with add delete modify and view functionality. Kindly su...

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.