Support the ongoing development of Laravel.io →

4,604 Threads

posted 7 years ago

How to access 2 table from controller?

I make 2 table inside up function. I can access groups table. But how can I retrieve group_details t...

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

Create Reports in PHP/Laravel with JasperReports

This package is the solution to compile and process JasperReports (.jrxml & .jasper files) just...

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

trying to output posts but Controller function seem to work wrong

I'm trying to output my posts and for that in a specific page I call a function with foreach to load...

0 Likes
2 Replies
posted 7 years ago

How to write the update Query of a table without model ?

Dear Friends, My insert query for a table is : http://laravel.io/bin/eDamm I need to write it's upda...

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

DB::getQueryLog() wrong execution time

Laravel 4.2 I have this code: DB::flushQueryLog(); $album_list = Album::with(['first_photo'])->wh...

0 Likes
1 Replies
Solved

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

[LARAVEL5.3] "The used SELECT statements have a different number of columns"

Hi. I've recently run into some trouble. I'm trying to make my first-ever-join in Laravel and it's c...

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

Trying to fix an issue with Microsoft Azure SQL and Laravel 5.3 (working with Schema)

I recently migrated to Microsoft Azure SQL and I've run into a bit of an issue with how they handle...

0 Likes
0 Replies

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

multiple databes data show or table show in a pages

My controller : { $data = array( 'employeedetails' => EmployInfo::all(), 'designatio...

0 Likes
1 Replies
Solved

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

mass import to database with relatives

Hi guys. I missunderstand something. I have two tabels: Products (id, sku, brand, name, etc.) publi...

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

© 2025 Laravel.io - All rights reserved.