Support the ongoing development of Laravel.io →

4,311 Threads

GroupBy only seems to accept my first property

Hello, I'm trying to group a result by multiple columns. Only my first property seems to be used. $a...

0 Likes
0 Replies

Eloquent Model -> Relation to 2 Models

Hi, i have the following issue: I have 3 Models: Categories Products Shops Shops and Categories ar...

0 Likes
2 Replies

Lazy Load second degree relationships

Hi guys, do any of the Eloquent guru's know if you can lazy load and filter further than one degree...

0 Likes
0 Replies

DB::table()

Hy, I have some problem to use the "DB::table" expression. Here is my code : DB::table('pa...

0 Likes
4 Replies

Seems $this->post->fill()->save wont work in 5.0

Can anybody validate will hasOne work in such way: Post::find(1)->author->fill([ 'title' =...

0 Likes
0 Replies
posted 9 years ago

filter many to many by user_id, Not working

I'm trying to filter the query according to userpicks.user_id. the current query results in all tour...

0 Likes
0 Replies

Eloquent: Primary key with more then on field

Hello, I'm new to Laravel and PHP, but I really enjoy working with it :) I want to post, edit and de...

0 Likes
3 Replies

updating record won't save INT fields as NULL, get 0 instead

I'd like to save a form into my MySQL DB which has a couple of INT fields. These fields are all set...

0 Likes
4 Replies

Redirect route not working

I have created a route and this works correctly. However If the record is deleted and matches the id...

0 Likes
9 Replies
Solved

Database Transactions & Repositories

Does anyone know if its possible to wrap a couple of repositories in a database transaction. For wha...

0 Likes
0 Replies

Is the database instance in Laravel use the "Singleton Pattern" ?

I am new to Laravel. I just want to know is the Laravel create database connection every time for ea...

0 Likes
0 Replies

Cannot post Angular to Laravel - SQLSTATE 23000

I am trying to post an Angular form to Laravel. In Firebug I can see underneath the Post tab: Source...

0 Likes
5 Replies
Solved
posted 9 years ago

Laravel Eloquent condition in pivot

Hello everybody, I'm just trying a little bit with the Laravel Eloquent model and now have the follo...

0 Likes
1 Replies
posted 9 years ago

Users with vastly different profile types

Hi everyone. I'm putting together an app that has two types of user (teachers and students). Each us...

0 Likes
2 Replies
Solved

Retrieve Eloquent model using multiple table query

I think I am missing something basic here. I have an sql query that works fine but I am unable to tr...

0 Likes
6 Replies
Solved
posted 9 years ago

Laravel Restful Controller Searching Database For ID?

So to explain my issue, whenever i am connecting to the database with Laravel it will default search...

0 Likes
1 Replies

ModelNotFoundException is not working

Hi, I am trying to redirect Not found query page to 404, but this is not working try { $page = Pa...

0 Likes
3 Replies
Solved

eager loading with constrain issue

so here is my controller $beritas = KategoriArtikel::with(array('Artikel' => function($query) {...

0 Likes
0 Replies

echoing array inside array

so i do eager loading and it returned 1 array inside array like this array(3) { [0]=> array(6...

0 Likes
2 Replies
posted 9 years ago

Using an orWhere in a Join

I am trying to use an orWhere in a join statement. This is what I have: ->join('wheres', function...

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