Support the ongoing development of Laravel.io →

4,312 Threads

Laravel Relationships

I am trying to understand why something works. I have a user model and within it I state that a User...

0 Likes
3 Replies

ksort() expects parameter to be array, integer given

I am currently trying to insert the value of fields to a table. However, this error keeps coming up:...

0 Likes
3 Replies

fetch values from a default values table if not found in local values table.

I have a case where I need to maintain some values of a user locally while there are default values...

0 Likes
3 Replies

move db row up/down in table

I have a table in my view with 2 options to move that row up or down the table. I have made a sort_i...

0 Likes
3 Replies

A "Fatal Error Exception" with my new model "Userconfirmation.php"

Written with StackEdit. I was happy with laravel 4.2 until i upgraded to 5.2, By the way i wanted...

0 Likes
1 Replies
Solved

SQLSTATE[42S22]: Column not found: 1054 Unknown column

I have 2 models class BrandModel extends Model { protected $table = 'brand'; public functi...

0 Likes
2 Replies
Solved

searching in child table.

Hi, I am using Zizaco/entrust for managing roles/permissions of users. I have users with admin,super...

0 Likes
2 Replies

Using string as type for id column

Hi, first of all please forgive me my bad english. I am pretty new to laravel so i can't figure this...

0 Likes
2 Replies
Solved

Convert an array to working eloquent model

How to convert an array (data already inside database) to working eloquent model without writing dat...

0 Likes
1 Replies

View Search Results In View With ahref

I am trying to echo out data from the database with a foreach loop. In return it returns this error:...

0 Likes
0 Replies

whereDoesntHave in PIVOT table with 2 where clauses

Hi, I need to exclude records (hotel rooms) from Eloquent query that have booked any day between Ch...

0 Likes
0 Replies
posted 8 years ago

Sortby On Collection using Relationship as first sort.

I have a collection of products. Each product is assigned to a category. I am using ->with(produ...

0 Likes
0 Replies

Get and pass database into partial template view

Can anyone help me? thanks http://stackoverflow.com/questions/37316393/get-data-from-database-and-di...

0 Likes
0 Replies

Issue with adding soft deletes in a later migration

Hello, the issue I'm having is that I created a user table as my first migration, then added a migra...

0 Likes
1 Replies
Solved
posted 10 years ago

Polymorphic relations, simply can't get it to work

Hi, I've been trying to get polymorphic relations to work for a few hours. I've followed the example...

0 Likes
10 Replies

How to validate array input?

Hey, I have many to many relationship between Product and Order models with custom pivot attribute r...

0 Likes
8 Replies

creating an export link

I'm trying to create a link that if you click on it, then it will export the values in the database...

0 Likes
0 Replies
posted 8 years ago

Can't add an Accessor

Why an Accessor can't be named getInvoiceNumFormattedAttribute() but getInvoiceNumFormatAttribute()...

0 Likes
0 Replies

Model validation using related models

Consider the following models. class Camp extends Model { protected $fillable = ['name', 'descri...

0 Likes
1 Replies

Timed Queue Request - Per User

Heya, I'm making some API requests to a service, and they have a leaky bucket policy. Maximum of 40...

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.