Support the ongoing development of Laravel.io →

4,311 Threads

Laravel Cashier (5.1) & Stripe - Correct thought on 1:Many Subscriptions?

Hi, Building a system which a user can have many adverts running (somewhat similar to eBay I guess)...

0 Likes
0 Replies

Company has many Company Addresses

I have 3 tables: companies => id, name cities => id, name company_addresses => id, company_...

0 Likes
0 Replies
posted 8 years ago

Model with User

I've got a model Foo with fillable set, and a request that's been validated, so in my controller I'd...

0 Likes
1 Replies

Three-way pivot table with Eloquent

Hi everyone, Intro I' m building a web application where users can be in zero, one or more teams. Ev...

0 Likes
6 Replies
Solved
posted 8 years ago

Convert this query to Eloquent

It is posible to convert it in eloquent? $obmain = DB::select( "SELECT * FROM...

0 Likes
3 Replies
Solved

How to get a list of posts and check if the user already "Liked" them?

I'm having fun with Laravel framework trying to build a little "blog" site that works the...

0 Likes
7 Replies

time() instead of timestamp

Hello, In database migration we use ....$table->timestamps(); to make created_at and updated_at f...

0 Likes
1 Replies

Assigning Areas to Users when areas are district, county and city tables

I have separate tables for State, District, County and City. I want a user to be assigned different...

0 Likes
0 Replies

Code in model - need ideas

Hi guys, I need to run something like this in the mode. What I need to do is check if the date on th...

0 Likes
0 Replies

problem with Eloquent's hasManyThrough's query.

I have this structure in my application. table users: id, username table projects: id, name...

0 Likes
3 Replies
Solved

Laravel 4 Pagination on scroll

I am searching for pagination example using scroll. i am currently using la-ravel 4 without blade. P...

0 Likes
0 Replies

firstOrCreate and join

Hello, how can I join two tables with firstOrCreate method? for example I wanna get a row of a table...

0 Likes
0 Replies

Trouble using Eloquent with multiple pivot

Hello Guys, Here is my design database: Booking: id, status, transaction BookingItemOfferPair: i...

0 Likes
0 Replies

Eloquent 5 in Lumen giving unwanted response.

I've recently started using Laravel 5 and the new Eloquent 5.* and I'm experiencing some unwanted re...

0 Likes
0 Replies

dealing with precision numbers / money and storing it using eloquent

Ive been doing some calculations in code converting strings to float because thats the only way I co...

0 Likes
2 Replies

Export to excel

Hi I use this to display data on my form after the user selected criteria for the report: @foreach($...

0 Likes
9 Replies
Solved

Order by + Pagination

Hi guys , I'm having a problem with pagination . Well it works pretty fine at first page , but when...

0 Likes
0 Replies

Convert this GeoLocation Query to Query Builder for $$$

If someone can help me get this query working properly in Query Builder I would be willing to pay a...

0 Likes
9 Replies
posted 8 years ago

any thought on these relationship queries?

hi friends I am new to laravel. I am working on a project with complex query (complex to me :-) Ple...

0 Likes
0 Replies

Get sum's of a related table field?

Hey Guys, i want to create a small invoicing software for my company using laravel and, of course, e...

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.