Support the ongoing development of Laravel.io →

4,311 Threads

Laravel : BadMethodCallException Method [find] does not exist

when trying to extract some values from the database using the model object User I get the following...

0 Likes
2 Replies

Laravel : BadMethodCallException Method [find] does not exist

when trying to extract some values from the database using the model object User I get the following...

0 Likes
0 Replies

php artisan migrate error: [PDOException] could not find driver

I'm trying to learn the basics of Laravel 4 and I'm also new to programming so I'm trying to learn a...

0 Likes
1 Replies

How to orderBy users by Userdata model?

$data['photos'] = Userdata::where('name', '=', 'main_photo')->orderBy('updated_at', 'desc')->p...

0 Likes
1 Replies

Dealing with pivot data without running heaps of queries

I have a API endpoint which should list all users who are members of an organisation. Users and Orga...

0 Likes
1 Replies
posted 10 years ago

Laravel: Return all the values from pivot table

Hello, I am running into an issue regarding getting all the values from a pivot table. I have a pivo...

0 Likes
1 Replies

3 related Models, how to insert update delete?

Hello, I am new to Laravel and have an issue in one of my models. I have the follwoing: class User e...

0 Likes
4 Replies

Describe model table

Hello i was wondering is there an easy way to describe table that corresponds to specific model like...

0 Likes
1 Replies
Solved

Rollback if mail sending fails - how to do?

Hello, I have a database operation that saves a user in the database. After saving I will send an em...

0 Likes
2 Replies
posted 10 years ago

Can't propperly retrieve related models

For some reason I can't get any of my related models when using Eloquent ORM. I have the following s...

0 Likes
2 Replies
posted 10 years ago

add foreign key field to database

I want to add a foreign key field on mysql, but eloquent is making this difficult. When you do the f...

0 Likes
1 Replies

How to submit data to multiple tables in the same form

I have 2 tables: listings and listings_specifications Listings table id type status location specifi...

0 Likes
1 Replies

Using Ardent and putting validation in the model. Any reviews, thoughts, or insight?

I'm trying to adhere to the thin controller, fat model design so I want to put my validation in my m...

0 Likes
2 Replies

Can someone please explain these to me?

In Laravel there are these three things: Doctrine Eloquent Illuminate Can someone please provide m...

0 Likes
8 Replies

Only pulling data from 7 days ago

Hey everyone, I am working on creating a news area for a local organization in my hometown. The basi...

0 Likes
1 Replies
Solved

[Package] Laraphrases

Laraphrases is a package for live editing phrases on websites. Github: https://github.com/orkhan/Lar...

0 Likes
0 Replies
posted 10 years ago

Model Question

This is probably very simple, in Laravel anyway :-) I have a table of products that I access a produ...

0 Likes
2 Replies
posted 10 years ago

DB::Raw question

Ok, This works well $total_sales = OrderLine::where('product_id', '=', $product->id)->sum('qua...

0 Likes
2 Replies

Cleaning up my controller

Hey guys, I have this working controller, that I would like to clean up if possible, since i am sure...

0 Likes
3 Replies
Solved

3NF database design ( And Conditions )

I have a 3NF design (Tag , Item_Tag, Item) As below but it wont work because i'm looping the same ol...

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