Support the ongoing development of Laravel.io →

4,597 Threads

Trying to get data from a many-to-many relationship

Hello! I have a many-to-many relationship with decks and cards, something like this: http://laravel....

0 Likes
4 Replies

Passing data to a view in the right way

Hi everybody. I'm new to Laravel and this is the first framework I use, I'm loving it so far. I have...

0 Likes
3 Replies
Solved

What to test in a database interaction and how to test an interaction with an existing database?

Hello! I'm starting a new application to interact with an existing database. I'm building a new back...

0 Likes
3 Replies
posted 10 years ago

Changing mysql tables

Hey, i am making a website that i want to sell, and it's a website for a game, and the buyers might...

0 Likes
3 Replies

Global variable/singleton available to all models/repositorys?

Hi, I need to be able to access the $site_id in most parts of my application as content will differ...

0 Likes
1 Replies

Custom Model Methods

Hi, I'm new to Eloquent & Laravel. I'm following the line of thinking of using Eloquent models f...

0 Likes
2 Replies

Creating a Model without Table

Hi, I would like to implement a Model without a table in Laravel. But, I could not find a help/ refe...

0 Likes
1 Replies

Lavel US States Seeder

Is there a script to generate seeds for the US States?

0 Likes
7 Replies
Solved

Ignore duplicate record on insert

Hello all, Is there way to ignore duplicates records on insert. My Code Currently: // Convert json d...

0 Likes
1 Replies
Solved

Sending an email with database results

I need to query the database and send an email using the results from the database. I'm not entirely...

0 Likes
2 Replies
Solved
posted 10 years ago

I can implement this transaction with laravel

Hello friends, as I can implement this transaction with laravel BEGIN; SELECT id FROM turns WHERE es...

0 Likes
1 Replies

Order my foreach loop order by date?

Hello, everyone, I am new to all this, even to php, so my questions could be really silly, but any h...

0 Likes
6 Replies
Solved

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

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.