Support the ongoing development of Laravel.io →

4,606 Threads

Model query

Hey, i have a question: how can i make a query, and use results like this: Query::user()->Name

0 Likes
2 Replies
Solved

How to store data in different tables in db?

Hi..Recently I installed DOPTOR CMS.Really it is working good.I have one doubt,while creating the mo...

0 Likes
0 Replies
posted 10 years ago

Would firstOrDefault(...) be useful to others?

I'm building my first real application with Laravel and I am often finding myself doing something li...

0 Likes
2 Replies
posted 10 years ago

Seeders no longer migrating

Hi, I am following this tutorial: http://www.codeheaps.com/php-programming/creating-blog-using-larav...

0 Likes
1 Replies
posted 10 years ago

PHP Parse error in model

I'm just starting Laravel, following tutorials. The base install and simple views work( ie returning...

0 Likes
1 Replies
Solved

Eloquent One to Many With Condition

Hi i have a hard time making successful query, basically i have products table and product_specials...

0 Likes
2 Replies

Can connect to local sever with artisan but not hostgator

I can easily do a php artisan migrate on MAMP on my local server using localhost. However, when I ch...

0 Likes
3 Replies

storing/reading dateTime

I am using Laravel 4.1 and MySQL and using DateTime fields in MySQL in UTC timezone. How can I read...

0 Likes
1 Replies

Eloquent update not updating a field

I'm having trouble getting a record from the database, updating it and saving it again. Here is the...

0 Likes
2 Replies
Solved

Collection Search

http://laravel.io/bin/DqxWo Hello, I have a collection that I would like to filter it down to what I...

0 Likes
0 Replies

"Metadata" table to array, "Automatically"?

I am interfacing my code with Wordpress which has a table called "Usermeta". The table st...

0 Likes
2 Replies
posted 10 years ago

Running query

Hey, i have a small problem, when running a query like this $user = DB::table('users')->where('na...

0 Likes
1 Replies
Solved

Where clause comparing updated_at to pivot created_at strange results...

I have a User and a Trip model with belongsToMany relationships and a pivot table between. I'm tryi...

0 Likes
0 Replies

Multiple category tables

Hi Guys, I have a question about the naming convention of the tables. We have multiple tables with s...

0 Likes
2 Replies

Eloquent convention

Hi Laravel Team, I have had some deep trouble on writing Eloquent queries for multiple nested reques...

0 Likes
0 Replies

Model data formatting, models and relations.

Hey Guys, So i'm just learning Laravel as a side project and have come across an interesting sort of...

0 Likes
0 Replies

Selective join, trouble with duplicate results

What I'm trying to do is: Output results with a filter from a pivot table where 'posts' can have up...

0 Likes
2 Replies
Solved

Open source DB driven ACL

I like to see a database driven Acl method for laravel just like cakephp, Cakephp has a method with...

0 Likes
0 Replies

How to store data in different tables in db?

Hi..Recently I installed DOPTOR CMS.Really it is working good.I have one doubt,while creating the mo...

0 Likes
1 Replies

Problem saving information in the database.

Hi, I'm new in Laravel. I'm having a problem saving data in the database. I get an array and I'm try...

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.

© 2025 Laravel.io - All rights reserved.