Support the ongoing development of Laravel.io →

4,597 Threads

Form data not being saved

I have a one page form, which data needs to be saved to 2 tables - Company and User. A Company has m...

0 Likes
3 Replies

When inserting Postgresql JSON type field in eloquent, getting a escaped string

Hi, im having this issue, more info http://help.laravel.io/628636319849786ae066f7dfe72389b0e1d3e140,...

0 Likes
0 Replies

Repository pattern: how to access related repository's method?

I have two eloquent model: Foo and Bar. class Foo extends \Eloquent { public function bar()...

0 Likes
2 Replies

Unwanted Characters in Response

hi for bad english writeing excusme when try to connect db and read some data any way my response co...

0 Likes
1 Replies
Solved

Laravel pivot table Base table or view not found

Hi im trying to query my tasks table. A little background information on the tables and how they are...

0 Likes
1 Replies

Getting data of model related as an array

Hi... maybe it's a newbie question... these are my first steps with Laravel.. suppose I have in Post...

0 Likes
2 Replies
Solved

Filtering Results in RestAPI with attributes from a related model

I'm currently building a REST API with laravel. I'm trying to implement filtering of results on a ro...

0 Likes
2 Replies
Solved

Can you use sum() or something like it in a whereHas() statement?

I have a model called 'Charges' which stores charges made by someone. I want to sum all the charges...

0 Likes
1 Replies
Solved

Controllers - Am I doing this right?

Hey, I'm new in using frameworks and I tried to figure out, how to do simple insert, edit, delete by...

0 Likes
2 Replies
posted 10 years ago

Current date in where

How do I use curdate() in a query in Laravel?

0 Likes
2 Replies

Form:model + checkbox

Hello everyone, I'm using form::model for data editing, works correct but return empty checkbox, how...

0 Likes
4 Replies

HELP! Query with join on pgsql

Hi, I want to have sql query like this: SELECT * FROM "public".user inner join ( SELE...

0 Likes
0 Replies

Eloquent Model Factory / Model Code Generator

Hey folks, There are times when heavy model customization is required, and I want to access data wit...

0 Likes
2 Replies

rendering data of a join query

i've been able to construct a join and it works: $projects = Main::join('builds', 'mains.build_id',...

0 Likes
1 Replies

Database query: nested object

Hi, I am trying to create a beautiful API. Lets assume we have 2 tables, relationship one-to-many (a...

0 Likes
2 Replies
Solved
posted 10 years ago

DB Count on group by.

I have the following query that needs to count how many occurrences there is of the events (using an...

0 Likes
3 Replies
Solved

Help with Laravel+ODBC

I was searching the internet I saw many results saying its possible, tried some of them but I'm unab...

0 Likes
0 Replies

Model Observer And Events When Create

There are two ways to create new record in laravel $model = new MyModel; $model->field1 = 'value1...

0 Likes
1 Replies
Solved

How to setup a polymorphic relationship?

Hi guys! I have a posts table and a post may have one media. It can be a video or a gallery. This is...

0 Likes
0 Replies

boolean TRUE/FALSE not saving in DB

Hi, I have a boolean column in table. I have also added that field in $fillable in modal class. When...

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.