Support the ongoing development of Laravel.io →

4,606 Threads

Places with distinct currency rates (some kind of smart eloquent query)

Hello, I have an app that should list points with its exchange rates. Basically, there are 2 main ta...

0 Likes
0 Replies

Illuminate\Database\Eloquent\Factory bug

In my testcase when I try to create a model by factory like the following $factory->defineAs(App\...

0 Likes
2 Replies

Trouble with the Laravel Cart

Hello Friends, So I'm working on an assignment where I have to make an online bookstore where users...

0 Likes
4 Replies
Solved

Localization - Dynamically filling the language files from database

I'm currently porting an app from Codeigniter to Laravel and was looking to implement some functiona...

0 Likes
4 Replies

How to use 'WITH (NOLOCK)' in Laravel with connection 'sqlsrv' ?

Hi i have a conneciton with a giant datebase, and i realy need to use 'with (nolock)' in my queries...

0 Likes
1 Replies
Solved
posted 10 years ago

How to use `with (nolock)` with Eloquent or Query Builder?

Hi folks! I have some throuble because my queries not have with (nolock) instruction after from clau...

0 Likes
1 Replies

Database records -- Select from time range, group by ID, sum numeric columns

Hi guys, I'm fairly new to Laravel (and web dev), but I'm trying to build a project for work. I'll t...

0 Likes
3 Replies
Solved

Observing pivot tables

I've seen a lot of posts here about this but no solution. Is there any method to observe pivot table...

0 Likes
0 Replies

Is it possible to pass a second argument to edit and update methods of a controller?

I need to pass a second argument to edit and update methods of a controller like: public functi...

0 Likes
2 Replies

Call to a member function save() on string

I want to persist changes to Attendance model table, but I get this error: FatalErrorException in At...

0 Likes
8 Replies
Solved

Laravel 4 Paypal IPN Not Working TokenMismatchException

I am simply adding a paypal IPN (using the https://github.com/mike182uk/paypal-ipn-listener) to add...

0 Likes
3 Replies

Curious about $factory

Hello, I've been building my app for a while with Laravel 5.1, and I'm still a total newbie with thi...

0 Likes
0 Replies
posted 9 years ago

Ajouter une variable

Bonsoir, J'ai fait une requête pour retourner du JSON de cette façon. [code]$users = DB::table('user...

0 Likes
1 Replies

Querying Relationships Tables

Hi friends, do you can help me? I need construct a query for view (empleados.index), parsing data fr...

0 Likes
0 Replies

Unable to fetch data from another table. Please help.

Migration files user table <?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Databa...

0 Likes
9 Replies

How Can I "Request" the data of a collection of rows?

I want to build a web based system to keep track of students attendance. I have these three tables r...

0 Likes
0 Replies

ErrorException in Grammar.php line 39: Array to string conversion

Hi, this is my store function in CategorieController.php public function store(Request $request) { C...

0 Likes
1 Replies

Laravel database seeding made easy with Faker PHP Library

This tutorial shows you how to generate database seed data using Fake Library http://www.tutorials.k...

0 Likes
0 Replies

How to use OrderByRaw to get posts from database?

I currently have this code: $sidebar = Post::where('published', '=', '1')->orderByRaw("RAND(...

0 Likes
2 Replies
Solved
posted 9 years ago

MySQL Query to laravel - query with two subqueries over 3 tables

Hello everybody What I have So I wrote a SQL Query to select multiple information from three tables...

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.

© 2025 Laravel.io - All rights reserved.