Support the ongoing development of Laravel.io →

4,300 Threads

Get time from created_at column

Hello to every one. I am trying to display the entries which are stored within one hour, How to get...

0 Likes
1 Replies

Frozennode Laravel Administrator show hasMany elements

Im using the frozennode administrator bundle for laravel 4.2 to manage amongst others my blog posts,...

0 Likes
0 Replies

Base table or view not found

I get following error: Illuminate \ Database \ QueryException (42S02) SQLSTATE[42S02]: Base table o...

0 Likes
1 Replies

Incremental save method - looking for feedback

Ok so in many cases you want to update integers in a database incrementally, this helps ensure that...

0 Likes
1 Replies

[EXERCISE] Refactoring Exercise #1 is Complete! Discuss.

After some interest in the Laravel subreddit, I've decided to run a refactoring exercise a few times...

0 Likes
5 Replies

How to paginate Eager Loding in larvel?

I have a serious problem. I have 3 models Role Model: <?php class Role extends Eloquent{ /** *...

0 Likes
0 Replies

is dynamic migrations a good idea?

I started one small project and wanted to have fun, so i created dynamic migration, that gets inform...

0 Likes
0 Replies

Relationship Table

I'm following the docs to create the ORM relationships at http://laravel.com/docs/eloquent#relations...

0 Likes
2 Replies
Solved

Search form validation

Hello, i am facing problems with a validating GET request with a built-in validator class: Controlle...

0 Likes
7 Replies
Solved

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 9 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 9 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 9 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

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

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.