Support the ongoing development of Laravel.io →

4,311 Threads

Querying existing Database

Hi all, I'm very green in Laravel. Could someone pls show me how i can query an existing DB? I have...

0 Likes
1 Replies

Replicating database content

Hello everyone, I have been struggling for a few days with this problem and every possible solution...

0 Likes
0 Replies
posted 9 years ago

Right Join in Eloquent

I need to build a model that executes a query like: select * from foo right join foo_pivot on foo_pi...

0 Likes
0 Replies

Model create problem

$users = Users::create( (Input::only('nickname', 'info', 'age')) ); $insert = Users::create(...

0 Likes
2 Replies
Solved
posted 9 years ago

Laravel 5 : pagination

Hello, I play with Laravel 5 but I have an issue with pagination. The classes Paginator and LengthAw...

0 Likes
0 Replies

mwb2eloquent converter

There was a website for convert .mwb file to eloquent easliy. But website down. I created my website...

0 Likes
4 Replies

Is there a better way to display selected option in select list n the view.

Hi, In my application I have a system to manage with system users (the employees). I am using Cartal...

0 Likes
2 Replies
posted 9 years ago

Many-To-Many whereHas() not adding the table name?

Version : Latest 4.1 Models : http://laravel.io/bin/Dekmw $search = $this->specialization->whe...

0 Likes
2 Replies

InvalidArgumentException for Postgresql database

If you receive an "InvalidArgumentException: Trailing data" exception when using Eloquent...

0 Likes
1 Replies

Help me translate this code to laravel

So i migrating my website from php only to laravel and now i getting issue with this part of code, i...

0 Likes
2 Replies

Eager loading with constraint in the pivot table

Hi, I am planning to create three tables researches resources research_resources (the costs for upgr...

0 Likes
2 Replies

A question on models (and their methods)

Hi, I am new to Laravel and MVC development in general. I have method that imports data from a CSV f...

0 Likes
3 Replies

toJson() inconsitency after Collection->forget()

use Illuminate\Database\Eloquent\Collection; // actually Illuminate\Support\Collection Before calli...

0 Likes
0 Replies

Automatic querybuilder from link params

Hey everyone, I want to make an automatic querybuilder that takes the params from the url in the con...

0 Likes
1 Replies

What is the best way to organize data update in db?

I have a table with many fields. Some of these fields I need to update, the rest leave as is. Becaus...

0 Likes
0 Replies
posted 9 years ago

Undefined property: Client::$name ...

Hi, fnc in Eloquent Client model public function getNameAttribute() { if( $this->name) { retu...

0 Likes
2 Replies
Solved

Query Trouble

I've got a query that I'm struggling to get executed in Laravel Here's the raw SQL query SELECT stre...

0 Likes
2 Replies
Solved

Eloquent how to order tweets and retweets by created_at in one query,

Hello I'm building a site that has a similar setup to twitter, here is my database structure: ##User...

0 Likes
0 Replies

how can i create this relationship

Hi, i'm working on a simple application but i'm stuck at modeling the database, this is what i'm try...

0 Likes
1 Replies

Join multiple tables in Sentry

I want to join multiple tables with default 'users' table in Sentry. I'm using Laravel framework. I...

0 Likes
3 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.