Support the ongoing development of Laravel.io →

4,311 Threads

yajra/laravel-oci8: Index limitations.

Hi, As you know, there is a limitation in constraints' name definition as it should not exceed 30 ch...

0 Likes
0 Replies
posted 10 years ago

setter not working

Hi Guys, My setter is not working: public function setStartDateAttribute($date) { if ($date) { $this...

0 Likes
3 Replies

HTML::select

Hey guys, im running the following Query: $user = User::where('active', '=', '1')->get(); Then in...

0 Likes
2 Replies

I can get the records created in the current month, I use postgresql

I can get the records created in the current month, I use postgresql SELECT * FROM quakes WHERE extr...

0 Likes
0 Replies

Eloquent Creating API

Hello I am trying to return data with multiple table at the same time using repository function ulti...

0 Likes
0 Replies

where is the "Eloquent" class file?

class User extends Eloquent {} I can't find where the "Eloquent.php" class file in the &qu...

0 Likes
4 Replies
posted 10 years ago

Stange eloquent behaviour. Can someone explain why this happens?

I had the following models. <?php use LaravelBook\Ardent\Ardent; class Teacher extends Ardent{...

0 Likes
0 Replies

possible to create dinamic sql query

Hello friends, you can create a dynamic sql query: there are 3 input and the user can enter a value...

0 Likes
1 Replies
posted 10 years ago

How can I add new keys to a newly created Collection using each()?

I am trying to add two new keys to a previously iterated Collection. I am using the each() method bu...

0 Likes
0 Replies

Select from subquery

hi, i need to do this query: SELECT avg(vote) FROM (SELECT max(timestamp), vote FROM votes_table WHE...

0 Likes
1 Replies

Relationship with Games and Events

I'm trying to figure out this tough relationship with the Eloquent relationships. Lets say through o...

0 Likes
4 Replies
Solved
posted 10 years ago

one-to-many relation problem

Hello i facing an issue with the inverse relation of a one-to-many relation. My two models are the f...

0 Likes
1 Replies
Solved

Database query returns null

This code returns true when run and I don't get it. What am I doing wrong. Thanks guys! profile = DB...

0 Likes
2 Replies
posted 10 years ago

(Need advice) instantiate a model with some constraints

I'm creating a membership site. Let's just say that, user will have photos. when user logged in, thi...

0 Likes
0 Replies

Eager loaded results not sorting

I have a query with eager loaded results that need to be sorted. I've used similar code in other are...

0 Likes
0 Replies
posted 10 years ago

Class not found. Strange error.

Hi, I'm actually creating an online shop, but I've got a strange error. So that's how the error page...

0 Likes
2 Replies
Solved

Eloquent join not working

For some reason when I do the following it only lists this. Any ideas as to what I am doing wrong....

0 Likes
10 Replies

Eloquent ORM find related object

What is the correct way to find a related object based on a where clause with Eloquent ORM? For exam...

0 Likes
1 Replies
posted 10 years ago

Something wierd with findOrFail

Good afternoon, guys, i'd ask you something new about findOrFail method. I was tried to select a use...

0 Likes
0 Replies

Get Json In desired format

Hello Every One, I am working on a web application ,which takes json as input and display it on web...

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.