Support the ongoing development of Laravel.io →

4,597 Threads

n level hierarchy relationship in laravel 4 of database

how we can find n level hierarchy relationship in laravel 4 of database. like parent and child relat...

0 Likes
5 Replies

Eloquent simple joins

I have 3 tables: Users, Tasks and Records. Users have many tasks Tasks have many records. I'm trying...

0 Likes
2 Replies
Solved

ORM where fields have same value with related model field

I have model a with column name value_a and model b column name value_b. model a have hasOne relatio...

0 Likes
1 Replies

Insert dynamic form data via model

Hello, i want to insert dynamic forms into the database. Database table : ID | DEPARTMENT_ID | CATEG...

0 Likes
0 Replies

Raw SQL to Eloquent

Is it possible to translate this UPDATE `questions` SET `sort` = CASE `ID` WHEN '1' THEN 0...

0 Likes
1 Replies

Database query user meta table.

I am building a filtering system which allows a user to filter other users via setting up some varia...

0 Likes
0 Replies

eloquent ORM in RDBMS comparision

Hello! I am about starting my thesis, I have made an laravel application with eloquent ORM/mySQL now...

0 Likes
0 Replies

Using Eloquent with the IoC Container

I have what will likely be a very simple issue to solve for an advanced Laravel user regarding how t...

0 Likes
0 Replies

DB::select and raw not returning model instances?

Hi guys, So I am trying to run this complicated SQL query: $eastern_standings = DB::select(DB::ra...

0 Likes
1 Replies
Solved

Validate password reset token after expired

How do I validate the $token against password_reminders if the token exist or before it's expired an...

0 Likes
0 Replies

laravel 4 advanced routeing not happening on dynamic urls

//do any one have any idea how to solve this advanced routeing problem // the foreach loop which is...

0 Likes
0 Replies

Model problem

When I use , for example, User:all(); everything works and give me all records from table that conne...

0 Likes
4 Replies
Solved

Create model urls

Hi guys, I was wondering if it was possible to do a method in the model to get the url of the model?...

0 Likes
3 Replies

[Package] NestedSet for creating trees in database (categories, menus)

The packge for Laravel 4, 5 (>= 4.1) that simplifies and speeds up managing hierarchical structur...

0 Likes
4 Replies

Inserting multiple rows to database

Hi, I've created a form where users can choose multiple checkboxes. <input type="checkbox&qu...

0 Likes
0 Replies

Get collection and associated pivot with one query

Here are my models: class BookReading extends Eloquent { // Book reading has many authors p...

0 Likes
1 Replies
Solved

Mail config file from data base

I made a model 'Setting' and a static method 'get' and I use it for get configs from DataBase. For E...

0 Likes
1 Replies
Solved

Editing multiple rows

How do I edit multiple rows in Laravel? I've searched Google and I'm seeing all sorts of mentions of...

0 Likes
2 Replies

[Package] Perform searches in a table giving priorities to each field

Searchable, a search trait for Laravel Searchable is a trait for Laravel 4.2+ that adds a simple sea...

0 Likes
0 Replies

Query Scope with Repositories

Having trouble finding the way to use Query Scopes with Repositories. Is there a way? Would like to...

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.