Support the ongoing development of Laravel.io →

4,599 Threads

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

Laravel 5.3 Eloquent & Relationship

I have a record model and status model. Which each record has status can be "approved", &q...

0 Likes
3 Replies
Solved
posted 7 years ago

Insert records to either two tables or one table depending on if a record exists or not using Laravel query builder

I'm trying to insert records to either two tables or one table depending on if a record exists or no...

0 Likes
0 Replies

Is it possible to have Eloquent model $fillable attributes conditionally?

For example, you might have a "My Account" section on the frontend for users, and a User E...

0 Likes
2 Replies

Filter Results based on the parent relation

Hi, I'm trying to filter my results based on a field value. Some informations Laravel 5.3 postgres...

0 Likes
0 Replies

Getting error when returning query to view (Trying to get property of non-object)

Hello, I'm trying to get the info from a specific user via a ID in the url. This is my route: Route:...

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.