Support the ongoing development of Laravel.io →

4,311 Threads

Delete quotes in query to execute

I need to execute a query with group by. But the group by is not for a field. I need to group by wit...

0 Likes
0 Replies
posted 10 years ago

4 table join together

I have 4 tables TableA hasMany TableC TableB hasMany TableC TableC hasMany TableD I want to connect...

0 Likes
2 Replies

Composite primary key

Hi ! I read that L3 didn't support composite primary key, is it the same for L4.1 ? In my case it's...

0 Likes
2 Replies
posted 10 years ago

How to perform a tag search ?

Hi, Given this simple database setup: posts - id tags - id post_tag - id - post_id - tag_id ......

0 Likes
4 Replies
Solved

Getting a data from model & use in controller

In relationship from the questions I have ask previously, Question 1: Inserting selected fields from...

0 Likes
9 Replies

Children Models

I would like to have the following models: Employee, Agent, Client. Since half of all the fields and...

0 Likes
3 Replies

Master-Detail

good morning, someone who can help me, I need to create a route between father son model to model, l...

0 Likes
2 Replies

HipHop (and / or NGINX) and Saving new Records

Hi there, This was a different thread, but incorrectly titled. Anyway, here's the problem: On our d...

0 Likes
3 Replies
Solved
posted 10 years ago

Cannot call a function from model

Hi, I am new to laravel and this is pretty basic problem (I think) but for some reason I can't get m...

0 Likes
3 Replies
Solved
posted 10 years ago

Custom methods

Hi, is there any way to add custom methods to eloquent models? e.g.: class User extends Eloquent {...

0 Likes
5 Replies
Solved

Error Trying to get property of non-object

I am struggling to understand how laravel works and I have a very difficult time with it Model - Use...

0 Likes
1 Replies

Pagination with custom variable

Hi again. I have 3 tabs in a page. I have 3 queries and thus get the results and make 3 different pa...

0 Likes
1 Replies
posted 10 years ago

Help! Problem with creating new records

Hi there, I have a site which needs to go live today, and there is a problem with Eloquent, and the...

0 Likes
9 Replies
Solved

Retrieving Translated Field from Pivot Table

Hello, one of the requirements on the application I am developing is to have it to use an arbitrary...

0 Likes
0 Replies
posted 10 years ago

using the '!='sign inside a where() method

I have a table with a row 'comments'. This is 'opmerkingen' in dutch. Every row can contain 1 commen...

0 Likes
2 Replies
Solved

How to handle relations between table in forms?

Hi, I've been looking for examples for a while and found out that the docs are lacking about this. H...

0 Likes
3 Replies

Conflict in Unique Column Name - Join Statement Query Builder

DB::table('users') ->join('contacts', function($join) { $join->on('users.id', '=', 'contacts.u...

0 Likes
1 Replies

Help getting data from my Database

I have two models with relationship: City and Events. In the controller i have this: $cities = City:...

0 Likes
1 Replies

Insert One to Many with multiple records

Hi there, I would like to insert a post and its images with laravels ORM. Posts title tekst Images...

0 Likes
3 Replies

Eloquent - select single value from database

Hi all, I'm creating a drop down list that gets populated using data from a database. Everything wor...

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