Support the ongoing development of Laravel.io →

4,608 Threads

Suggestions PLS! Display results using a association table

What am I not understanding? I want to get all the 'industries' associated with a 'project' via an a...

0 Likes
1 Replies

Understanding Mass Assignment

I'm learning Laravel and just need to clarify myself here. If you intend to push all input data to i...

0 Likes
7 Replies
Solved

ModelName::first() returns "No query results for model" even though there's data within the database

Paste: http://laravel.io/bin/9vvxv php artisan tweek Tweet::first() PHP Fatal error: Class 'Twe...

0 Likes
0 Replies

child of child relationship with pivots

Hi everyone Could you please help me to solve my problem I have 3 tables: types belongstoMany catego...

0 Likes
1 Replies

How can I show a photo from the database?

The photo is saved in the database with a form based on the User model which I've changed. It is sav...

0 Likes
6 Replies
posted 9 years ago

How to reproduce a OR WHERE YEAR(.....) clause?

The wereYear() function to reproduce WHERE YEAR(...) exists, but what about OR WHERE YEAR(...) ? In...

0 Likes
1 Replies
Solved
posted 9 years ago

Where clause with nested AND/OR

I need to write a where clause with Query Builder with nested AND/OR, I suppose that I have to use w...

0 Likes
2 Replies
Solved

joining multiple tables

Hello everyone, I am trying to join multiple tables in my controller.php but i am getting errors. I...

0 Likes
0 Replies

Users can't login after logout

Hi, i'm having an issue. After registration users get automatically logged in and have no problems....

0 Likes
3 Replies

Seeded passwords are always invalid

Hi, I'm trying to use a database seeder to create user accounts for testing. The seeder works fine a...

0 Likes
5 Replies
Solved

Seeder File For Users Table

Is there a better way to write this up? <?php // Composer: "fzaninotto/faker": "v...

0 Likes
2 Replies

Is it possible to build an Eloquent query version of this SQL query?

Even if it included some Raw elements. :) Select concat(places.path, child_places.id, '/') as p...

0 Likes
4 Replies

Carbon mysql persistence

I have a datetime attribute that I want to convert to Carbon and persist it to mysql as a Carbon obj...

0 Likes
1 Replies

Laravel 5 artisan error MAMP!

I created a project with composer flawlessly BUT artisan is giving me a Error! I have created i MySq...

0 Likes
0 Replies

Check if table exist, if not create table

Hello everyone, I made a code which i used to check if a table exists or not. If not the code would...

0 Likes
1 Replies

Eloquent nested polymorphic relationship

I have a polymorphic relationship set up between the comments and the video / images tables. Now i w...

0 Likes
5 Replies

Controlling open connections to DB

Hi, I'm using Eloquent ORM outside of laravel. Its with SLIM Framework. I'm trying to control the nu...

0 Likes
0 Replies

Pagination override behavior to provide an specific json output

Hi everyone, I need some help to accomplish my goal, I have a legacy frontend app and i need to chan...

0 Likes
0 Replies

[help] Join + Insert Query Builder

Hi.. i try to insert query with join table, this my code: $addnew = DB::table('list_dasar')->join...

0 Likes
0 Replies

insert or update multipile rows

I have this code: $sqlInsert = array( array('id'=>1, 'temp'=>1), array('id'=>2, 'te...

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