Support the ongoing development of Laravel.io →

4,605 Threads

How to add logic toForeach loop to show just upcoming events, not finished events

Hello again, my dear fiends. So after understanding, how to order data from database in Foreach loop...

0 Likes
5 Replies

Model for multilingual database

Hi, I'm new to Laravel and I really like it so far. I'm having some trouble with a multilingual data...

0 Likes
0 Replies

How laravel updates model ID in the following logic

I Use the following code for Saving a model(Car model) wich belongs to another model (Brand Model) a...

0 Likes
1 Replies

Querying available permissions for a user , in Role based access control system

Hello everybody I have three tables for implmenting role based access control system: -users -roles...

0 Likes
3 Replies
Solved

One to many error.

Hi, this is my category model <?php class Category extends \Eloquent { protected $fillable = []...

0 Likes
3 Replies
Solved

Eloquent -- Confused On How To Work With Lookup Tables?

I originally coded my application completely omitting models and just using raw queries in my own ty...

0 Likes
1 Replies

Binary(longblob) files from MySQL larger than 1MB are getting truncated when trying to copy table row to another table.

I am currently storing files in my mysql table. I have no problem saving large files in the table as...

0 Likes
2 Replies

Why you delete the table first before seed?

I read some posts about database seeding. I find the seeder's 'run' method begin with DB::table()-&g...

0 Likes
2 Replies
Solved

Pivot not updating

$student = Student::find(20); foreach($student->classes as $student_class) { if($student_c...

0 Likes
3 Replies
Solved

laravel 4 and mongodb

Hi to all. New forum is great.! I am about to begin a large scale application built on laravel 4 and...

0 Likes
5 Replies

Could not save in DB

Hi, I am having trouble to insert record in DB, here is my code $member = new User; $member->user...

0 Likes
2 Replies
posted 11 years ago

Blank page

Hey, i ran this script: $names = DB::table('Accounts')->get(); foreach($names as $name) { $name-&...

0 Likes
1 Replies

Postgres with Laravel produces weird results with nulls. And strings. Maybe.

I reckon that using Postgres with Laravel produces weird results with nulls. Check out the error mes...

0 Likes
0 Replies

Laravel 4 + Excel

I have a view that show the registered users data from database. I need to have a button that create...

0 Likes
4 Replies
Solved
posted 11 years ago

Display all data from table

Hey, i need to know how to make a query to display all the data from a table. For example i have <...

0 Likes
1 Replies
Solved
posted 11 years ago

Creating schemas in Postgress

I'm currently using the schema builder to create a database. The only thing I'm missing is a method...

0 Likes
1 Replies

A four digit year could not be found Data missing

Hello! I am having some trouble to dynamically update records on my database. I need to synchronize...

0 Likes
1 Replies

DB Seeding Already Populated Table

I have a database table for "roles" and for "permissions", and I need to seed th...

0 Likes
3 Replies

UNION TABLES

I would like to know how to make a query MySql to laravel controller: My MySql query like: (SELECT c...

0 Likes
1 Replies
Solved

Model query

Hey, i have a question: how can i make a query, and use results like this: Query::user()->Name

0 Likes
2 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.

© 2025 Laravel.io - All rights reserved.