Support the ongoing development of Laravel.io →

4,608 Threads

Store multiple checkboxes in database

I want to store multiple checkboxes from a form to database. &nbsp{!! Form::checkbox('expectatio...

0 Likes
2 Replies

Ajax user registration

I would like to make my own user registration using Ajax. I created form, on submit I call function...

0 Likes
0 Replies

Database migration

Hi all! Recently was assigned to us an "old" project on L4 , the project has a very poor d...

0 Likes
2 Replies
Solved

How to set the Primary Key and Foreign Key to string

I have suborder table and the primary key is string format e.g. "10001-01". Each suborder...

0 Likes
1 Replies
posted 9 years ago

Query builder results include extra columns

I'm having a confounding issue where each result from a query builder query (executed against a SQL...

0 Likes
0 Replies

Dynamic dropdown list

I am trying to do a dynamic or dependent dropdown list but I don't know how to obtain data from the...

0 Likes
4 Replies
Solved

How to generate Audit Trail or User Action (Add, Edit, Delete Record)?

I would like to generate Audit Trail or User Action (add, edit and delete data). What the best way t...

0 Likes
4 Replies

Call to a member function connection() on null shows up occasionally

Hi, I'm using Laravel 5.2 fresh install and use postgresql as the database. And I use "web"...

0 Likes
1 Replies
Solved

Display database record base on date.

How to display last 2 month record without including display last month record.

0 Likes
0 Replies

Temporary filenames in database

Hi, I'm trying to make an uploader. Everything works fine, except the temporary filenames are saved...

0 Likes
1 Replies

Error when trying to insert multiple checkbox values

Hi I am failing to insert multiple checkbox values to database. it returns the error: ErrorExceptio...

0 Likes
1 Replies

Adding DB-column "on the fly"

Hey guys, currently I'm looking for a way to add a column within a controller with a name, that's ba...

0 Likes
3 Replies
Solved

Creating new pivot table entries with additional attributes

I have two models: Order and Item. There is a many-to-many relationship with a pivot table linking a...

0 Likes
0 Replies

How can I use whereHas on a relation of a relation to the same table with Eloquent Query Builder?

I'm trying to run this query: $products = $this->product_model->where(function($query) use ($k...

0 Likes
0 Replies

Get details of reverse polymorphic, maybe a different way to approach this?

In this example: Tables Person id firstname lastname Company id companyname Item id attachedto_...

0 Likes
1 Replies
Solved

Populate dropdown based on previous selection

Hey guys, am trying to implement into my app ability to populate a select drop base on a previous se...

0 Likes
0 Replies

controller saving parameter from route

let assume there is a list of customers with routing like this: <ul> <li><a href=...

0 Likes
4 Replies
Solved
posted 9 years ago

migrate not giving any output or result

I'm using Laravel 5.2.6 and going through the "Laravel 5 Fundamentals"->"7. Migrat...

0 Likes
1 Replies

Subquery error - SQLSTATE[42000]

I'm using the Laravel query builder to write a join statement and I find that I'm encountering a str...

0 Likes
0 Replies
posted 9 years ago

Where Between in Query Builder

I'm using query builder in Laravel 5.2 to make some similar to "SELECT value FROM table1 WHERE...

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.

© 2025 Laravel.io - All rights reserved.