Support the ongoing development of Laravel.io →

4,304 Threads

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

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
posted 10 years ago

Can't propperly retrieve related models

For some reason I can't get any of my related models when using Eloquent ORM. I have the following s...

0 Likes
2 Replies
posted 10 years ago

add foreign key field to database

I want to add a foreign key field on mysql, but eloquent is making this difficult. When you do the f...

0 Likes
1 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

Can someone please explain these to me?

In Laravel there are these three things: Doctrine Eloquent Illuminate Can someone please provide m...

0 Likes
8 Replies

Only pulling data from 7 days ago

Hey everyone, I am working on creating a news area for a local organization in my hometown. The basi...

0 Likes
1 Replies
Solved

[Package] Laraphrases

Laraphrases is a package for live editing phrases on websites. Github: https://github.com/orkhan/Lar...

0 Likes
0 Replies
posted 10 years ago

Model Question

This is probably very simple, in Laravel anyway :-) I have a table of products that I access a produ...

0 Likes
2 Replies
posted 10 years ago

DB::Raw question

Ok, This works well $total_sales = OrderLine::where('product_id', '=', $product->id)->sum('qua...

0 Likes
2 Replies

Cleaning up my controller

Hey guys, I have this working controller, that I would like to clean up if possible, since i am sure...

0 Likes
3 Replies
Solved

3NF database design ( And Conditions )

I have a 3NF design (Tag , Item_Tag, Item) As below but it wont work because i'm looping the same ol...

0 Likes
2 Replies
posted 10 years ago

Problems with Eloquent ORM, namespaces and "with" function

I have this models: app/Models/Instance.php <?php namespace App\Models; use Eloquent; class I...

0 Likes
1 Replies

Using model scopes gives Method not found

I'm having a bunch of trouble with model scopes. I have one scope that works properly, called direct...

0 Likes
4 Replies
Solved
posted 10 years ago

Polymorphic relations and hasMany relations for the same record

I'm trying to setup polymorphic relations for the first time. I have 4 models: Category, Image, Tip...

0 Likes
0 Replies
posted 10 years ago

Retreving ID after creating Polymorphic relation

Hi, I'm trying to retrieve an id after creating a Polymorphic relationship. Here is my code: $cat...

0 Likes
1 Replies

How to sync() more than the primary keys?

I have a many to many relationship setup like this: Product Model: public function skus() { return...

ostap liked this thread

1 Likes
1 Replies

Allow user to manage ONLY their own items

Hello, I am new to Laravel and have a small issue... I have an app set up with a front-end [for list...

0 Likes
5 Replies

Listing data with whereExists

I'm currently working on a browser game built with Laravel to get into laravel more. I'm currently r...

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.

© 2024 Laravel.io - All rights reserved.