Support the ongoing development of Laravel.io →

4,302 Threads

Passing variable to view, not working?

Hey guys, I've got this view, and im passing a variable to it, however it returns an error to me. Th...

0 Likes
21 Replies

Many-to-many, find modelA which belongs to a set of modelB

Sorry if the title is confusing. I am finding it difficult to word this question. Basically I have a...

0 Likes
0 Replies

Comments sorted by upvotes/downvotes

Hi everyone, I'm building a website where every posts has comments. Each comments have upvotes/downv...

0 Likes
0 Replies

Not able to get proper return from sql raw test

I have a postgres function that measures the distance between two points. I want to use this as a te...

0 Likes
1 Replies

Postgres view

Is possible to query a postgres view by declaring oi eloquent class protected $table = 'view_name';...

0 Likes
1 Replies

Using "where" with dynamic properties

I have a situation where a user can upload profile photos to an album: there is a "users"...

0 Likes
2 Replies

email validation never fires.

I'm not 100% sure if this is a bug in Ardent or Laravel, but I cannot seem to get the email validati...

0 Likes
3 Replies
Solved

Having problem inserting multiple rows in a table.

I have got the following array from my form. Now I want to store those data in a table. Array: Array...

0 Likes
2 Replies

MySQL query with curdate() not working

I'm rewriting a site using Laravel and having problems with queries involving dates. This is a pre-L...

0 Likes
3 Replies
Solved

Eager loading with "limit" not working.

I have two tables news and comments. News can have many comments: //News public function comments()...

0 Likes
1 Replies
Solved

Fills created_at and updated_at on record creation

The timestamps are being filled in both the created_at and updated_at when a record is created in my...

0 Likes
5 Replies
Solved

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

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.