Support the ongoing development of Laravel.io →

4,599 Threads

Combining results of queries

I am trying to combine results of two queries: For my first query, dd($sales) array:3 [▼ 0...

0 Likes
0 Replies
posted 7 years ago

Laravel 5.4 undefined variable

Hi fellas, after updating to Laravel 5.4 I have received some weird errors that I don't know how to...

0 Likes
1 Replies

Call to a member function groupBy on a non-object

I am trying to merge two queries $sales = DB::table('sales') ->join('drugs', 'drugs.id', '=',...

0 Likes
2 Replies

Help me please translate simple raw update query eloquently

Hey guys, Been trying to come with solution to translate this query as eloquent as possible, but kee...

0 Likes
1 Replies

Mass Insertion of Dummy Records w/Relations

I am trying to insert 1000's of dummy records over numerous seeding artisan commands. But I am stuck...

0 Likes
1 Replies

Form Handling

Hi. how can i input mutliple data from form into database using laravel 5.3 my code for form is be...

0 Likes
1 Replies
posted 7 years ago

Problem with Migration

Hi, i have following migration: $tableName = 'oxacceptedterms'; Schema::create($tableName, func...

0 Likes
0 Replies

accessing price sum on the basis of subcategory

I have three tables: Item { id, category_id, name, price} Category { id, subcategory_id, name } Subc...

0 Likes
0 Replies

How to query soft deleted models?

I have a social network type site where there is the normal front end and an admin interface for me...

0 Likes
0 Replies

Looking for Basic CRUD Laravel App

Hello Everyone, I am new to laravel Framework.I am looking for Baisc CRUD application or any best re...

0 Likes
4 Replies

Infinite scroll with custom queries in Laravel 5.3

Hi how can I implement infinite scroll with custom queries in Laravel ? Something like : $query = Se...

0 Likes
0 Replies

Eloquent / Fluent SubQuery select

Hi, I can't find a way to do a left join to count elements from pivot table using Eloquent and Fluen...

0 Likes
3 Replies

Insert Mass Dummy Records

I want to create 1000's of dummy users, but also correct relations. Example would be create a User w...

0 Likes
0 Replies

Call to undefined method Illuminate\Database\Query\Builder::lists()

I've just started to study Laravel using this course Laravel 5 Fundamentals but in lesson 22 I've a...

0 Likes
4 Replies
Solved

Helper Function

i want a helper function to get an element out of my database. can anybody help me?

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

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.