Support the ongoing development of Laravel.io →
posted 9 years ago

How do you handle models with distant relationships?

I have a Restaurant model with many Location models. Location models can have many Menu models. Menu...

0 Likes
0 Replies

Problem with Middleware - ReflectionException in Container.php

Hi, I'm having this error message when I try to load an Middleware. ReflectionException in Container...

0 Likes
0 Replies
posted 9 years ago

Laravel 1 aplication 2 domains and db's?

I have my app finished, but I wish to run it on 2 different domains and every domain should have his...

0 Likes
3 Replies

Trying to solve this polymorphic many to many relationship.

So. This is one of those "Well that escalated quickly" type projects. You start with basic...

0 Likes
0 Replies

Many-to-Many Relationship Form Binding (Laravel 5.3)

Hey guys, I am having trouble coming up with a plan on how to populate the "team_user" tab...

0 Likes
0 Replies

.env.travis File ignored in Laravel 5

I created a new file for Travis CI environment that looks like this .env.travis APP_ENV=travis APP_...

0 Likes
1 Replies

Database Query ROUND delivers wrong value

Btw. I'm using Lumen I have a table of events which have a LAT and a LNG each. Then I want to delive...

0 Likes
0 Replies

Defining Multiple Relationships

Hello, I'm trying to define a relationship where one user has many different roles. An user can sign...

0 Likes
0 Replies

Maintaining only created_at or updated_at in an Eloquent model

Hi. I'm aware that this was often asked for in the past. There are basically two solution's that can...

0 Likes
2 Replies
Solved

PHP function

please i want to know how to function a function that will work in all the website using php not in...

0 Likes
2 Replies

How to join in laravel infyom generator?

My controller is like this : <?php namespace App\Http\Controllers; ... class UserController ex...

0 Likes
0 Replies
posted 9 years ago

Get specific columns using 「with()」in laravel with appends fields in model

In my User model, I have an appends fields: protected $appends = [ 'is_admin' ];...

0 Likes
0 Replies

Laravel Register didn't Create New Data

I have tinkering my laravel project awhile, and when I try using register auth from laravel to input...

0 Likes
3 Replies

l5-repository query

Guys, good night. It's OK? I have a question that is difficult to solve. How would I make this query...

0 Likes
0 Replies

Synchronizing 2 databases in Parallel

First I would like to thank your community as it has helped me a lot during my journey of learning L...

0 Likes
6 Replies
Solved

TokenMismatchException Issue

So I've been finagling with this for a couple hours. I've read all the posts on the GitHub issue twi...

0 Likes
0 Replies

Table with multiple polymorphic fields

Ok so I have a table called payments which has two sets of polymorphic fields:- parent_id parent_typ...

0 Likes
0 Replies

Form Submission after Authentication

I was developing a form which is public but user must be logged in to submit the form. Here is my ro...

0 Likes
3 Replies

How to get base url form json in laravel 5.3?

My javascript code is like this : $.getJSON("{{ url('/dropdowns/satkers') }}" + "/&qu...

0 Likes
1 Replies
Solved

login using user id in JWT Auth

Hi, I know , that exists way how to login users by theirs ids: Auth::loginUsingId($user_id) but how...

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.

© 2025 Laravel.io - All rights reserved.