Support the ongoing development of Laravel.io →

4,602 Threads

Eger loading morphs

I have a Notification which implements public function notifiable() { return $this->m...

0 Likes
1 Replies

Slug - Generator Help

I am searching for a slug generator and found many but all have unique : true/false where what I nee...

0 Likes
6 Replies

Advice on related models

Hi All, I am trying to achieve the following structure in my Laravel application and I need some adv...

0 Likes
1 Replies

table with a timestamp field

Hi.. I'm newbie to php/laravel.. I have created this table.. CREATE TABLE confirmtokens (...

0 Likes
2 Replies

Rename Column and Change Type

Hi, Is there any way to change the column type and rename it. I know it's foolish to be changing the...

0 Likes
0 Replies

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

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.