Support the ongoing development of Laravel.io →

4,311 Threads

Wait until information is saved into DB

Hello, I'm currently trying the following: I'm having a form, where a user can add additional inform...

0 Likes
2 Replies
Solved

Model not found (Class 'App\Http\Controllers\App\Work' not found)

Somehow my model cannot be found, I also did try with use; This is in a normal controller public fun...

0 Likes
1 Replies
Solved

Add additional information for user

I'm using Laravel for a little app. In this app I added the auth things of Laravel (verison 5.3), so...

0 Likes
4 Replies
Solved

Error: dynamic property loading when not required in loop

I have customer model and product model joined by subscriptions table. When i run something like $c...

0 Likes
0 Replies

OneToMany works for the first user not the second??

Hi I am having invoices and customers and users how can generete both Customer Model: public functio...

0 Likes
1 Replies
Solved
posted 7 years ago

Inverse relation on 2 fields not working

I have a football Game which has a home_team and an away_team My relations for Game.php are as follo...

0 Likes
0 Replies

Send Message to Users ( 2 kind of users ), Polymorphic Relations

Hello Guys , I have a question , I don´t know if some one can help me here , I have a project of a s...

0 Likes
2 Replies

Simple Pagination on a Filtered Collection

Hello! I have a view which returns a filtered collection. Before filtering the collection, the Eloqu...

0 Likes
1 Replies

How to properly create a custom query builder method

I have a custom method that I'd like to use globally. It is similar to increment and decrement but i...

quyle92 liked this thread

1 Likes
7 Replies
posted 7 years ago

My left join fetches wrong row - 2 rows have the same name

This a piece of my method: # the posts within the thread $posts = DB::table('posts') ->wher...

0 Likes
4 Replies

Many to many with additional columns / FK's

Hi there, Since a few months i'm working with Laravel and i love it, came from codeigniter. I have a...

0 Likes
4 Replies

slug, str_slug

I added a collumn in the table users I call slug, no errors or anything, it just doesn't add. Should...

0 Likes
2 Replies
Solved
posted 7 years ago

Including a model method result in an Eloquent query

Hi all, I have a method defined in my model called status which calculates a status based on some fi...

0 Likes
0 Replies

Laravel - retrieve all user with their project from two tables using Eloquent

I have two tables 1- projects 2- clients I need to get the names from the client table and the proje...

0 Likes
1 Replies

Create a json file and populate it with mysql data.

Hi everyone, what am trying to achieve with the code below is to fetch data from mysql database, the...

0 Likes
0 Replies

How to use multiple database connections in laravel project?

I want to use mysql and mongoDB in my laravel project, I know I can define multiple connections arra...

0 Likes
1 Replies
Solved

Laravel 5 : Displaying the column data of third table from first table where both tables are connected to a second table

I have three tables namely 1.Product 2.Category and 3.Attribute and each category have different att...

0 Likes
0 Replies

Update related model on model save

Hi Laravels, I have a sublet model that has its own table, but I have 2 more tables to store sublet...

0 Likes
0 Replies

Default Value On Migrate

Hello How can I define a default value on table schema(migrate)? Thank You

0 Likes
1 Replies
Solved

Get DB field from whereHas Table

Hi there, I have the folloing Tables: Partner id int name varchar booking id int id_partner int bo...

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