Support the ongoing development of Laravel.io →

4,311 Threads

I think there is a better way to do what I am doing. Programmatically populating a dashboard nav with Models

So I am attempting to create a basic CMS in Laravel as a sort of pet project. I am coming from a wor...

0 Likes
0 Replies
posted 7 years ago

Polymorphic Relation: Assigning parent class and getting collection of children

Hi there, I'm currently fighting with polymorphic relations. What I want to archive is multiple type...

0 Likes
0 Replies

Syncing multiple same IDS in a Many To Many relationship.

Hello people, I want to add two same ids the intermediate table of a Many To Many relationship using...

0 Likes
0 Replies

Modifying the $request in middleware, getting 'cannot use return object in write context' error

I am creating a little blog CMS as a sort of first Laravel App project, and am trying to implement f...

0 Likes
1 Replies

Auth::guard(guard)->check() Always returns false

Hello, I am making a web app for a college project and I am trying to have 3 different authenticatio...

0 Likes
1 Replies

multiple where conditions count

I'm trying to return a count of a query with multiple where conditions. I have batches of licenses....

0 Likes
1 Replies
posted 10 years ago

How to pass a variable to the Schema::table function?

I am building some migration code and I want to simply loop through an array and drop all foreign ke...

0 Likes
1 Replies

How do you call a mysql stored procedure

I am trying to call a mysql stored procedure called new_user passing parameter to it, and i have tri...

0 Likes
2 Replies

Undefined property Error in View.

Hello everyone First Post and probably not the last, Very new to Laravel and Probably a simple answe...

0 Likes
2 Replies
posted 7 years ago

how do we load user data (distant relation) in polymorphic relation and...

...how do we get all user's associated likeables? So I used the polymorphic relation method to set u...

0 Likes
0 Replies

Eloquent querying

Hi I'm converting an existing application from another old php framework to laravel and trying to ge...

0 Likes
2 Replies

Many to Many filtering

Hi, I have Post and Tag models, associated in many to many relationship. I am trying to filter Posts...

0 Likes
1 Replies
posted 7 years ago

How to create a pagination result corresponding to single table in multiple table situation?

Dear Friends, I know how to paginate a single Table query result in controller like below:...

0 Likes
1 Replies

Validation Rule - Ignore on Update

Hi all - I'm stumped with rule validation on update. All the examples use a user class but if I crea...

0 Likes
3 Replies
Solved
posted 7 years ago

laravel queries calculating average

I want an average of all sales for the month of January in the whole table. My date_sold is in the f...

0 Likes
1 Replies
Solved

Trying to get property of non-object in laravel 5.3 app though model relations seems appropriate

User model class User extends Authenticatable{ public function enrollments() { return $this-...

0 Likes
1 Replies

Many-to-many with ID and relation, How would the model look?

I'm trying to build a database where an admin Can create lists that have can have tasks, now the tri...

0 Likes
0 Replies

Default values on pivot table for attach/save

Hi, is there any way to set default values for the pivot table for attach and save? So rather than h...

0 Likes
2 Replies

Create seeds 3 relations deep?

Hi guys! I've been stuck in the docs and tutorials for days now! I have a survey website, with users...

0 Likes
0 Replies

Saving checkbox value in to a database

My form: {{ Form::checkbox('portfolio', 0, false) }} By default checkbox is unchecked. In controlle...

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.