Support the ongoing development of Laravel.io →

4,603 Threads

Make data from home controller accessible to content controllers.

The default layout and its controller has the main menu which gets user info from the DB for the log...

0 Likes
2 Replies

Having problem inserting multiple rows in a table.

I have got the following array from my form. Now I want to store those data in a table. Array: Array...

0 Likes
2 Replies

Behat - Vagrant - cannot access database

Hello there. I've been struggling for hours and hours, searching all over google on how to use Mink'...

0 Likes
0 Replies

MySQL query with curdate() not working

I'm rewriting a site using Laravel and having problems with queries involving dates. This is a pre-L...

0 Likes
3 Replies
Solved

Eager loading with "limit" not working.

I have two tables news and comments. News can have many comments: //News public function comments()...

0 Likes
1 Replies
Solved

Fills created_at and updated_at on record creation

The timestamps are being filled in both the created_at and updated_at when a record is created in my...

0 Likes
5 Replies
Solved

Continuing a session

I like to implement this in an application: when the user becomes inactive and the session is about...

0 Likes
0 Replies

php artisan migrate error: [PDOException] could not find driver

I'm trying to learn the basics of Laravel 4 and I'm also new to programming so I'm trying to learn a...

0 Likes
1 Replies
posted 12 years ago

Laravel pagination is damn slow

I was looking for a bottle neck of my app and it turned to be the laravel pagination. I have a table...

0 Likes
6 Replies
Solved

git and database.php

Hi there, I have my laravel project in git... and I do not want to commit my passwords to repo... so...

0 Likes
1 Replies

How to orderBy users by Userdata model?

$data['photos'] = Userdata::where('name', '=', 'main_photo')->orderBy('updated_at', 'desc')->p...

0 Likes
1 Replies

3 related Models, how to insert update delete?

Hello, I am new to Laravel and have an issue in one of my models. I have the follwoing: class User e...

0 Likes
4 Replies

Describe model table

Hello i was wondering is there an easy way to describe table that corresponds to specific model like...

0 Likes
1 Replies
Solved
posted 12 years ago

Combining 2 functions on a class?

I would like to know how i can combine 2 functions to a class. (newbie question) $data = tblcategori...

0 Likes
5 Replies

Rollback if mail sending fails - how to do?

Hello, I have a database operation that saves a user in the database. After saving I will send an em...

0 Likes
2 Replies

Image Upload / Lavarel stores image as a .tmp and not .img file

I created a Forum which should upload an image. In my form i`ve {{ Form::file('image') }} This is a...

0 Likes
0 Replies
posted 12 years ago

How to solve this with N+1 issue? Customer has a lot of activities, I want to take the latest one

Relation: One customer has many activities. From the Index page, I want to show the latest activity...

0 Likes
5 Replies
Solved

How to build a small site in a day (upload images feature)

Hi! I have a very specific small project need -- I need users to be able to upload their images (and...

0 Likes
2 Replies

How to submit data to multiple tables in the same form

I have 2 tables: listings and listings_specifications Listings table id type status location specifi...

0 Likes
1 Replies

Using Ardent and putting validation in the model. Any reviews, thoughts, or insight?

I'm trying to adhere to the thin controller, fat model design so I want to put my validation in my m...

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.

© 2026 Laravel.io - All rights reserved.