Support the ongoing development of Laravel.io →

4,606 Threads

Add created_at column to migrations table.

Hi Everyone, When we run migrate:install, migrations table is created in the database that has two c...

0 Likes
2 Replies

How do I run a DB queries for every page generated?

I've just jumped into Laravel / OOP development and I'm having issues with something that's so easy...

0 Likes
2 Replies

updating record won't save INT fields as NULL, get 0 instead

I'd like to save a form into my MySQL DB which has a couple of INT fields. These fields are all set...

0 Likes
4 Replies

Can you use other database softwares when developing with laravel

I have recently started learning laravel, and I dint feel comrfotable using laravel for constructing...

0 Likes
2 Replies

Database Transactions & Repositories

Does anyone know if its possible to wrap a couple of repositories in a database transaction. For wha...

0 Likes
0 Replies

Is the database instance in Laravel use the "Singleton Pattern" ?

I am new to Laravel. I just want to know is the Laravel create database connection every time for ea...

0 Likes
0 Replies

Cannot post Angular to Laravel - SQLSTATE 23000

I am trying to post an Angular form to Laravel. In Firebug I can see underneath the Post tab: Source...

0 Likes
5 Replies
Solved

Converting & to &

How can I do this assuming the user inputs an & as fx. "h&m"? :)

0 Likes
1 Replies

Retrieve Eloquent model using multiple table query

I think I am missing something basic here. I have an sql query that works fine but I am unable to tr...

0 Likes
6 Replies
Solved

store function not finding the correct table

In my page I have a textbox where you can enter your name and a dropdown where you can select a grou...

0 Likes
2 Replies

ModelNotFoundException is not working

Hi, I am trying to redirect Not found query page to 404, but this is not working try { $page = Pa...

0 Likes
3 Replies
Solved

eager loading with constrain issue

so here is my controller $beritas = KategoriArtikel::with(array('Artikel' => function($query) {...

0 Likes
0 Replies

Pagination: Undefined property: Illuminate\Pagination\Paginator::$username error

AbsractRepository.php /** * Get Results by Page * * @param int $page...

0 Likes
4 Replies
Solved

Object created but still producing "Call to a member function associate() on a non-object"

Error message: http://puu.sh/d4kdm/4a084d1170.png This has to be something stupid, I even have the t...

0 Likes
3 Replies
Solved

Deleting A Child Table Row

I currently have the following destroy function for my user's controller. When the destroy method is...

0 Likes
4 Replies
Solved

Controller Only saving last data in array into database

Have asked this question before but it wasn't answered.So am asking again.I have a table subjects wi...

0 Likes
5 Replies
posted 10 years ago

How to get metadata on model? (All model fields and its types, etc)

I'm using postgres database and I need to know all model field names and types from database. Someth...

0 Likes
0 Replies

Combine JOIN data to one result

Hello everyone, I'm new at Laravel and have a question about combining 2 JOIN results. At first, I h...

0 Likes
5 Replies

Eager loading with circular relations -> how to optimize?

Hello! I have got the following situation: There are two classes A and B They are related many to o...

0 Likes
0 Replies

Laravel eloquent relationships help?

I have a table in my database called Logs which has a user_id field which links in with the users ta...

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.