Support the ongoing development of Laravel.io →

4,597 Threads

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 10 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 10 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

Eloquent select from related table where...

Hi, I've read the eloquent docs, but can't seem to find the answer - am I missing something? I am tr...

0 Likes
2 Replies
Solved

Using Ajax to retrieve data with user input

Hi all, I have an issue I can't seem to figure out..... I want to use Ajax/jQuery to get data from a...

0 Likes
8 Replies

Last record in Eloquent model

Laravel has a first method when accessing an Eloquent model, but is there a way to get the last reco...

0 Likes
1 Replies

Nested query in FROM

Hi! I'm really newbie and I'm not sure how to do queries with Eloquent. My SLQ query is this: SELECT...

0 Likes
4 Replies
Solved

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.

© 2024 Laravel.io - All rights reserved.