Support the ongoing development of Laravel.io →

4,311 Threads

posted 10 years ago

The I just want one instance of the model not the collection problem

This happens to me all the time. so you need to work on one model but you don't have the key to use...

0 Likes
2 Replies

Reading JSON from view in called controller

Hi Im trying to send an array of data so I can destroy the IDs beeing sent in the array. I have a Ja...

0 Likes
1 Replies

Define multiple many-many relationships through single pivot table

Hi, I currently have a table which serves as a central link table for many-many relations between se...

0 Likes
0 Replies

laravel repository with eloquent and returning stdClass

somebody knows any good packages for using repositories with factories for returning generic data.

0 Likes
3 Replies

Count relationship columns with where

Hi, Im trying to return the project with the todos linked to it. The todo has a status and I'm tryin...

0 Likes
1 Replies

What am I getting an IS NULL added?

here is what I have CONTRACTOR and BID table class Contractor extends Eloquent { public function bid...

0 Likes
1 Replies

Search in encrypted data

Hi, I save my data encrypted into the database with the Crypt class. Is it possible to search into t...

0 Likes
3 Replies
Solved

One to Many Relationship

Hi all, i am new to laravel and have a fictional Project to learn: I have two Models: Sports and Tra...

0 Likes
1 Replies
Solved

Saving logic in a controller using repositories

I have created and included repositories using this tutorial: http://culttt.com/2013/07/08/creating-...

0 Likes
0 Replies

populate a drop-down list from database

Hi, I have 3 model tables: publishers, authors, and books (many-to-one relation between publishers-a...

0 Likes
1 Replies

Model with calculated sql field doesnt paginate

Hi All. I can't get the paginator to work with a calculated SQL field see below for example // this...

0 Likes
3 Replies
Solved

Counting and filtering results via a Pivot table

I'm currently building a newsletter system for multiple users. Each user has there own set of 'recip...

0 Likes
6 Replies
Solved

Updating a record using repository

Hi All, I have a repository to create a new record for residents, but now I need to use the same rep...

0 Likes
3 Replies
Solved

Drop down list formatting

Hi, I am trying to format drop down lists items while using lists, SiteSession::where('company_id','...

0 Likes
1 Replies

Integer Dates with *SQL Database in Laravel

I've been using integer MySQL columns to store unix timestamp dates and really prefer/like it. I'm j...

0 Likes
6 Replies

Foreach over Single-Dimentional Objects in Blade

Hi guys. I need help with the display of a CRUD resource in a View. I have an index view for a resou...

0 Likes
2 Replies

API-friendly Paginator

I'm interested in building a solid API for consuming resources from my projects. Would like to hear...

0 Likes
2 Replies

Connect Laravel with Oracle 11g xe in Linux(Ubuntu)

Hi, Help connect Laravel with Oracle 11g xe in Linux.

0 Likes
0 Replies

How do I create the ER [User] hasOne [Profile]?

Total newbie here and having trouble figuring this out. I have a table called users and a table call...

0 Likes
2 Replies

Why can't Eloquent use join clauses for eager loading?

class Cat extends Eloquent { public function user() { return $this->belongsTo('User'...

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.