Support the ongoing development of Laravel.io →

4,311 Threads

Eloquent Delete Where

Is there any way to say: Model::delete()->where('whatever', '=', 'whatever'):

0 Likes
1 Replies
Solved

Laravel 'Form::model()' does not populate input values stored as an array...

Hi there! I have a form like this (here I only present some of the the inputs): {!! Form::model($spe...

0 Likes
1 Replies
Solved

Eloquent Inheritance (Multiple Table Inheritance)

Hello, I've been strugling to solve the Eloquent Inheritence problem but haven't found a solution ye...

0 Likes
0 Replies

Pivot tables -> to auto_increment or to not auto_increment?

Simple one: Should pivot tables use an auto_incrementing primary key id column? I can't think of a u...

0 Likes
1 Replies

Get all users with first picture in Eloquent

Hi everyone!, I try and search but i cannot make this with eloquent I made this without eloquent, bu...

0 Likes
2 Replies
posted 8 years ago

Please help with model relationship

Hi guys, I'm a little confused and hope someone can clarify for me. I need the following models, but...

0 Likes
0 Replies

Resource route doesn't run update method

I have a resource route in my application and I think the update method is never called because ther...

0 Likes
4 Replies
Solved

Laravel relationship with a 3 column pivot table

I have 3 tables: id | name 1 | Men >80kg 2 | Women >80kg...

0 Likes
3 Replies
posted 8 years ago

whereHas for many-to-many relationship

My tables: products, attributes, attribute_product What I work on: search module What I need: produc...

0 Likes
1 Replies
posted 8 years ago

Relationships User / Modul / Modulrights

Hi all, i'm struggling with setting up my model relations. I have following Models: User Module Righ...

0 Likes
0 Replies
posted 8 years ago

Eloquent model function : how know if user has payed before accessing items ?

Hello, I an have difficulty to understand how i cans check if a user has payed before accessing an i...

0 Likes
1 Replies

so strange to me . what happened?

[2015-07-27 18:29:50] product.ERROR: exception 'RuntimeException' with message 'Can't swap PDO insta...

0 Likes
11 Replies

Creating a filter for results from relationships

I've asked this question on IRC and stackoverflow, but I may have described it wrong or too complica...

0 Likes
6 Replies

Eloquent Localization

I am trying to solve mine N+1 problems with SQL queries. I have managed to reduce the number of quer...

0 Likes
3 Replies
Solved

Eloquent Relation - Get result if

Hey guys, Im using the code: $events = Event::where( 'accepted', 1 ) ->with( [ 'club.city', 'o...

0 Likes
1 Replies

Laravel Revealing Passwords

I was under the impression that $hidden field in the Model class prevented information from being re...

0 Likes
1 Replies
posted 9 years ago

Cannot use date as Carbon instance

I have a datetime that I am trying to use with diffForHumans(). I added the following to my Eloquent...

0 Likes
11 Replies

Method ::find not found in Laravel 5.2 / Eloquent

In Laravel 5.2 I made a folder app/Models. This is one of my models: app/Models/Pin.php namespace Ap...

0 Likes
0 Replies

Subquery in Laravel ELOQUENT or Query Builder

Hi All, i have some problem while i am querying using Laravel Query builder. i know how to write the...

0 Likes
2 Replies
Solved

uuid auth problem

I using postgres and created my users table with id of type UUID. but after execute login action ret...

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