Support the ongoing development of Laravel.io →

4,603 Threads

posted 12 years ago

DB Value retrive

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

0 Likes
1 Replies

Baum Nested Set Retrieve all tree with relation

Hi, I have Category model based on Baum Nested Set (https://github.com/etrepat/baum) package and Cat...

0 Likes
2 Replies
Solved

Passing hundreds of variables from controller to view

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

0 Likes
4 Replies

google plus share - curly brackets

I need to render a google plus share link in my project. I have the url data in my database and call...

0 Likes
2 Replies
Solved

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

Laravel import thousand of records from csv file?

I have a csv file with thousand of records. How can I use Eloquent model to import all data?

0 Likes
2 Replies
Solved

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

SSH::into cant find the SSH key in Vagrant

I have setup my connection in remote.php: 'production' => array( 'host' => '192.168.x.x...

0 Likes
1 Replies
Solved

Eloquent Mutator + DB::raw

This Setter works well... public function setPoligonoAttribute($value) { $this->attributes['polig...

0 Likes
3 Replies
Solved

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

Laravel4 & PHPMYADMIN

Hi, does anyone know how to manage mysql database via phpmyadmin with laravel4. Thanks

0 Likes
2 Replies
Solved

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

How do you create a model relationship base on a column value?

Hi guys! I have a comments table and this table has four fields which are : id post_id type_id comm...

0 Likes
1 Replies
Solved

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

What is the proper way to set up a model to refer to a table in a different database?

Hi guys! I have two databases main and beta. In my database.php file I have setup the connection to...

0 Likes
2 Replies
Solved

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 12 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 = 'john@foo.com'; $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

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.

© 2026 Laravel.io - All rights reserved.