Support the ongoing development of Laravel.io →

4,311 Threads

best way to import data from an oldwebsite to laravel

Hello, what's the best and convenient way to import data from old website to a new one using laravel...

0 Likes
5 Replies

Convert mysql query in Laravel

#####I have following sql: set @balance = 0; select receipt_no, particular, @balance := @balance + (...

0 Likes
1 Replies
Solved
posted 10 years ago

eloquent type handling

Hi Guys! Eloquent is not handled sql scheme types? Or I have a wrong setting? Thanks. PHP 5.5.14 - u...

0 Likes
2 Replies
Solved

Complex eloquent query attempt, please help

Assuming I have the next database structure: And I want to do the complex eloquent query - gather a...

0 Likes
0 Replies

how to generate "SELECT * FROM invoice WHERE invoice.id NOT IN (SELECT invoice_id FROM payment)" in Laravel.

I would like to generate Sql like SELECT * FROM invoice WHERE invoice.id NOT IN (SELECT invoice_id F...

0 Likes
1 Replies

Eloquent by Example

I've just started a new community project at http://eloquentbyexample.com/ My aim for this is to bui...

0 Likes
1 Replies
posted 10 years ago

Multiple into one

Hi guys, Im building a function to show a google map, based on records from my database. This is wor...

0 Likes
1 Replies
Solved

Listings belong to user AND category

Hi, How do I set it up so that my Listings belong to both to the user who creates it, and a specific...

0 Likes
8 Replies
Solved
posted 10 years ago

BelongsTo relationship with 2 foreign keys

Hi everyone, Well, I bought a database of cities that came with 3 tables countries: country_code...

0 Likes
0 Replies
posted 10 years ago

Call to Undefined Method

Hi Folks, I'm namespacing and refactoring an app and I am receiving a 'Call to undefined method' whe...

0 Likes
1 Replies

Grab a field from a joined table that was joined using with clause

Greetings, I want to know if it's possible without using the raw query builder to do what the title...

0 Likes
0 Replies

Mockery testing child related models

I have just switched over to Laravel from CakePHP and wanted to get some advice on testing related m...

0 Likes
0 Replies

Building dynamic queries with Elo/Query Builder not possible?

Hi, in the past i have build queries like this: if (...) {$q.="AND (city='New York' OR city='De...

0 Likes
1 Replies

Inheritance

I have two classes. A and B. The class A extends Laravel, the class B extends A. They rappresent two...

0 Likes
0 Replies
posted 10 years ago

HasMany > BelongsTo through relationship

I have the following tables: users: - id requests: - user_id - listing_id listings: - id...

0 Likes
3 Replies
Solved

Can't return a simple many-to-many relationship value

Hello! First of all thanks for the interest in my topic. I think that this question is easy. I have...

0 Likes
2 Replies
Solved
posted 10 years ago

Paginator::make() returning so much data it crashes the browser!

I am doing something simple like the following: // Controller $activities = Activity::all(); $activi...

0 Likes
8 Replies
posted 10 years ago

hasManyThrough relation

Is there any way to get all relational data with hasmanyThrough of third model that has many records...

0 Likes
1 Replies
posted 10 years ago

hasManyThrough with two belongsToMany

Hi there, company id name users id name roles id name company_user company_id user_id role_u...

0 Likes
1 Replies

Has Many Through Pivot

Imagine: Category can have many Products, Products can have many Series - so basically, Category can...

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