Support the ongoing development of Laravel.io →

3,617 Threads

Migrate How to Change Column by One Setp

I want change password column length 32 to 60 Why this is not work, if (Schema::hasColumn('users', '...

0 Likes
0 Replies

Anyone willing to help on this, JSON, Laravel issue

Save me posted everything again thought i'd share the stackoverflow post i made earlier today http:/...

0 Likes
1 Replies

Database whereHas with Wherein (Query Builder)

id item_id tag_id 244 25090 28 247 25091 28 249 25091 33 250 25092 28 251 25092 33 253...

0 Likes
1 Replies

Capture Model old data before committing updated data to database

Hi, We have a requirement in our application wherein we need to capture all instance of update opera...

0 Likes
1 Replies

Array on One Column (Join)

DB::table('users') ->join('contacts', 'users.id', '=', 'contacts.user_id') ->join('orders', 'u...

0 Likes
1 Replies

Laravel and phpmyadmin on shared host

Hi! I have succesfully upload my app on shared host, and everything is okay except problem with data...

0 Likes
1 Replies
posted 11 years ago

DB Value retrive

Retrieved value from the MySQL database using @foreach($entity as $key => $value) {{ $val...

0 Likes
1 Replies

Passing hundreds of variables from controller to view

Here is my controller: public function stats() { $title = "Stats"; $stats = DB...

0 Likes
4 Replies

From Model Binding with one to many relation

Hello! I've got a problem with a form which should be populated with values from my database. My dat...

0 Likes
2 Replies

< select name="options" multiple > How to store in a array within the database

How would I store <option > 's in a mulitple select like so <select name="options" multiple...

0 Likes
0 Replies

Displaying content with html tags.

Hi , I am using ckeditor for textarea. It is working fine. But when we display description on fronte...

0 Likes
2 Replies

Howto handle exceptions that occur when database is disconnected or unreachable?

I am in the process of writing a SPA application using angularjs for the frontend and laravel as a R...

0 Likes
0 Replies

Permissions - only show deep nested content in users group?

Once again I'm pretty lost, the same place as other projects I've started xD A "closed" ap...

0 Likes
3 Replies

Possible to use PHP functions in-line with Eloquent ->where clause?

Hi, I've got this in my code. $list = $the_things->where( 'date_field', '>', time() ); That d...

0 Likes
1 Replies

Foreign key constraint is incorrectly formed

http://laravel.io/bin/Nk3v#2 I thought I had everything working, until I added this last foreign key...

0 Likes
0 Replies
posted 11 years ago

Is updating via the Model less effecient than updating via DB::table?

My question is in regards to doing this: $user = User::find(1); $user->email = '[email protected]'; $u...

0 Likes
4 Replies

Eloquent error: Integrity constraint violation

Hi, this is my first thread so if I doing wrong some things please don't hate me :) I'm using Migrat...

0 Likes
2 Replies

How to validate uniqueness of 3 fields

Hi. I have this table: Schema::create('maps', function($table) { $table->engine = 'InnoDB'; $...

0 Likes
0 Replies
posted 11 years ago

Join multiple tables, order by created_at problem

Can't get this to work properly. The results are not ordered by date and I get duplicates for each c...

0 Likes
0 Replies

Creating Eloquent model with 2 columns?

tableA that contains 2 particular columns. idA, idB tableB has 1 column that those are mapped to. id...

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.