Support the ongoing development of Laravel.io →

4,587 Threads

How to return a single value from a scope?

This is what I have done so far: public function scopeCityName($query) { return $query ->join...

0 Likes
1 Replies
Solved

Money Manager

I'm looking for a script that will allow users to add money to a user account. Thanks in advance for...

0 Likes
0 Replies
posted 10 years ago

Dynamic Oracle database connections

Is there a package out there for Laravel that will allow creation of dynamic Oracle database connect...

0 Likes
1 Replies

Pagination help

Hey there everyone, I'm pretty new to Laravel and MVC frameworks in general. I'm struggling to make...

0 Likes
2 Replies
Solved

DB::statement binding bug?

I'm receiving the following errors when using $bindings with DB::statement. Is there an issue with t...

0 Likes
2 Replies
Solved

Changing accessors with setAppends while eager loading?

I would like to prevent some users from accessing certain database columns based on role management....

0 Likes
0 Replies

Easy problem with a relation one to many

Hi all i'm stuck in a stupid problem that drive me crazy: Users Model class Users extends Eloquent i...

0 Likes
7 Replies

Getting hasMany relationship data from hasOne relationship

Hi All, New to Laravel and MVC so I'm a bit stuck and hoping I can get a solution from you. I have 3...

0 Likes
4 Replies
Solved

Model/Database Design question

Hi everyone, I'm currently developing a small real estate app, and before starting, I was wondering...

0 Likes
2 Replies

How to make URLs SEO-friendly with Nested Set Model?

Hello Everyone! I'm using Baum package for Nested Set Model and I have added extra field to database...

0 Likes
7 Replies
Solved

How can I get the id from hasMany relationship?

Don't know if I'm doing this right. I have two models: Projects and Clients. Projects table has the...

0 Likes
3 Replies
posted 10 years ago

I can't connect to sql server 2008

I use, xampp extension=php_sqlsrv_55_ts.dll extension= php_pdo_sqlsrv_55_ts.dll $user = 'myuser'; $p...

0 Likes
5 Replies
Solved

"Depth to great" when querying relations

I get the message "depth too great" when querying a couple of relations. These are my mode...

0 Likes
2 Replies
Solved
posted 10 years ago

Laravel mySql joins

Hi im new to Laravel and im just trying to work out the query builder. If i wanted to do this query...

0 Likes
1 Replies

Null value for deleted_at to be '0' and not 'null'

As I have asked a few times before, I'm developing a website/CMS to a game server for which I can no...

0 Likes
6 Replies
Solved

Is there a way to order by data in a pivot table

Hi, I have a pivot table that links users to products. The table has timestamps that are updated wh...

0 Likes
1 Replies

best practices or common conventions around schema documentation?

Hi Laravel Community, As one of your newest members I'm curious if there's common conventions here a...

0 Likes
1 Replies

Why does model->delete not check the return from the database?

I was looking at the code in the delete method of the Model object in Model.php. The code eventually...

0 Likes
0 Replies

running multiple queries

hi, is there any method to do a multiple queries. From what I want is around like this in mysql quer...

0 Likes
2 Replies

Query inside switch returns null

I have a controller with a method for when the user wants to soft-delete his record (Character model...

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.