Support the ongoing development of Laravel.io →

4,311 Threads

How to make a variable Database call?

I'm trying to set up a single Controller that will be passed a variable name from the route. I'm not...

0 Likes
10 Replies
Solved

Pagination always returns the first page

I've been trying to get this going for a day or so now, and I just can't make sense of this issue. F...

0 Likes
5 Replies

HasMany relationship query builder

Hi, I am having trouble building a simple query. I have a 3 models Photo, Post and Tag. Tag model is...

0 Likes
2 Replies

Save the change of the checkbox-state on DB

Hi everybody! I have a view that shows a list of tasks. Each task has a checkbox that shows if it's...

0 Likes
4 Replies
Solved

Persist Eloquent query builder object

I'd like to build a feature into my app that allows the user to save filters similar to Atlassian's...

0 Likes
0 Replies

Laravel eloquent two has many relation

I've tried it too many times but I still can't get it. I am trying to make a custom tour app with la...

0 Likes
0 Replies

Error when run 'php artisan db:seed'

I follow this tutorial: https://www.flynsarmy.com/2015/02/creating-a-basic-todo-application-in-larav...

0 Likes
1 Replies

Cleaner way to do this?

Hello, I am doing a users report page with laravel, and I'm using @if in views to show a error messa...

0 Likes
2 Replies
Solved

Trying to do inner join and find/where not sure which to use, complete new laravel user

$leverancier = DB::table('leveranciers') ->where('leveranciersId', '=', $id) ->join...

0 Likes
2 Replies

change return of paginate()

hello to every one, at first sorry for my bad english. hi to everyone, I have a issues with a route...

0 Likes
1 Replies

Postgres 9.4 new question mark operator can't be used in eloquent raw queries

The question mark allows to search values in JSONB array: SELECT * FROM tracks WHERE artistnames ? '...

0 Likes
2 Replies
Solved
posted 9 years ago

Overwrite model attribute with a value from related model

I've got a model for product, and a model for a sale - the product has a price, and the sale has sta...

0 Likes
2 Replies
Solved

Laravel 4 Pagination Working incorrectly (Append query string to paginator?)

I'll start by saying i've already consulted the Laravel 4 documentation on Pagination and tried many...

0 Likes
1 Replies
Solved

Get avg in single query

Can any one please help me how to get all column and avg of a column in a single query without using...

0 Likes
2 Replies

Pagination shows everything on each page

Hello, I am trying to build a webshop in laravel 4.2. I am almost done with everything but in the la...

0 Likes
3 Replies
Solved

Associating view to user record

So I have a view where I loop through then display a company's employees into a table. We are implem...

0 Likes
2 Replies

Equivalent to * in eloquent

Hello Im trying to find the equivalent of '*' to select everything in a join operation. Attempt 1: i...

0 Likes
1 Replies
posted 9 years ago

Issues with search with condition join

Hi all Good evening, I have an issues with search results products here i'm using with condition to...

0 Likes
0 Replies

Saving Form with request->all() and many-to-many relationship?

Hi everyone. I'm fairly new to Laravel and have come across an issue. I have a simply system which h...

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.

© 2024 Laravel.io - All rights reserved.