Support the ongoing development of Laravel.io →

4,303 Threads

Cycle dependecies

Hello, i have general question. How do Eloquent solves cycle dependencies on the tables? Does it at...

0 Likes
1 Replies

Translating a sql query so that can be accepted in laravel

I have this sql query, but I have no idea how to sort of write it Raw so that it can be put into my...

0 Likes
0 Replies

Laravel 4.2 Homestead PDOException "could not find driver" using "sqlsrv" for MS SQL server.

I'm using two database connections. One is our data warehouse, one is the mysql database powering th...

0 Likes
1 Replies

Laravel Cashier Multiple Subscription

Hi everyone, I am developing an application which is a subscription based app. But in my case rather...

0 Likes
0 Replies

Jason to Model

As i understand laravel supports the model route binding. I do understand how it works and i find th...

0 Likes
2 Replies

How can i get records using laravel eloquent relation with where clause???

My database structure like this: category: id, name Parents: category_id parent_id id has parent cat...

0 Likes
3 Replies
posted 8 years ago

Eloquent query where() confusion

I don't know how to build an eloquent query for the following: SELECT * FROM table WHERE column1 = v...

0 Likes
5 Replies
Solved

Laravel 5 RESTful Backend & AngularJS frontend CRUD example tutorial

Hi everyone. This is a link to a tutorial that shows you how to create a Laravel 5 RESTful API as th...

0 Likes
2 Replies

Eloquent/Database Query Builder events

Hello I've recently had the need of firing events when update() or delete() methods on QueryBuilder...

0 Likes
2 Replies
posted 7 years ago

New Version Breaks withTrashed() on polymorphic relations?

I'm sure I'm doing something wrong, as this is a bit complex for me... but this worked fine for me f...

0 Likes
2 Replies

Laravel Relationships

I am trying to understand why something works. I have a user model and within it I state that a User...

0 Likes
3 Replies

ksort() expects parameter to be array, integer given

I am currently trying to insert the value of fields to a table. However, this error keeps coming up:...

0 Likes
3 Replies

fetch values from a default values table if not found in local values table.

I have a case where I need to maintain some values of a user locally while there are default values...

0 Likes
3 Replies

move db row up/down in table

I have a table in my view with 2 options to move that row up or down the table. I have made a sort_i...

0 Likes
3 Replies

A "Fatal Error Exception" with my new model "Userconfirmation.php"

Written with StackEdit. I was happy with laravel 4.2 until i upgraded to 5.2, By the way i wanted...

0 Likes
1 Replies
Solved

SQLSTATE[42S22]: Column not found: 1054 Unknown column

I have 2 models class BrandModel extends Model { protected $table = 'brand'; public functi...

0 Likes
2 Replies
Solved

searching in child table.

Hi, I am using Zizaco/entrust for managing roles/permissions of users. I have users with admin,super...

0 Likes
2 Replies

Using string as type for id column

Hi, first of all please forgive me my bad english. I am pretty new to laravel so i can't figure this...

0 Likes
2 Replies
Solved

Convert an array to working eloquent model

How to convert an array (data already inside database) to working eloquent model without writing dat...

0 Likes
1 Replies

View Search Results In View With ahref

I am trying to echo out data from the database with a foreach loop. In return it returns this error:...

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.