Support the ongoing development of Laravel.io →

4,594 Threads

Storing multile selections into database

Hello, I have a form with select name "interests" and i present multiple options so i am u...

0 Likes
4 Replies
Solved

Is it possible to set properties to the authenticated user?

In the User model, I've created a property called groupMembership and a method called setGroupMember...

0 Likes
3 Replies

Adding Select statement to ORM

Retrieving A Record By Primary Key $user = User::find(1); var_dump($user->name); Is there anyway...

0 Likes
4 Replies
Solved

Relation with dynamic entity

Hello guys, I got this big question on this scenario: I'm building a easy post and comment system, b...

0 Likes
2 Replies

Related table, possible issue with table name?

Hi, I have a simple scenario here that is bugging me. There are two models: class DbNation extends E...

0 Likes
3 Replies
Solved
posted 10 years ago

Mocking a Stored DB Connection

Hi Guys I am saving a connection to a remote database in a static class variable. I can mock the con...

0 Likes
1 Replies
Solved

Authenticated sessions vs session data

Is there a way to distinguish between an authenticated user session, and more transient session data...

0 Likes
3 Replies
posted 10 years ago

SQL error during unit testing from a migration that works otherwise

I recently added a migration to my project to change the length of a varchar column. It looks like t...

0 Likes
2 Replies
Solved

how to use the data inside the event

app/filters.php App::before(function($request){ $sys_message = DB::table('u_message')->where(...

0 Likes
2 Replies

Dynamic constraints from router in Eager Loading

Hey guys, i've been looking for example about dynamic constraints using eager loading, but many exam...

0 Likes
0 Replies

Session Destroy

Hi, I'm a completelly newbie in laravel and I used to code with native php, here still cant find an...

0 Likes
8 Replies

Setting Database connection for Many To Many Eloquent relationship

Hi, I'm working on application that requires managing several databases from one administration inte...

0 Likes
1 Replies

Interface/Repository to multiple models

I'm writing a system around an existing database structure using Laravel 4.1. The current system is...

0 Likes
8 Replies

Loosing relationship when doing ->select(...)

Hi, I have two tables that look something like this: # Author # ID Name Slug 1 Denni...

0 Likes
3 Replies
posted 10 years ago

String Vs Text in Schema

I like to know the difference between String vs Text in schema. (Also longText , mediumText) I'm sav...

0 Likes
4 Replies
Solved

Storing configuration on database

I need some configuration to be changeable by a logged in user, and at first I thought at a file ins...

0 Likes
9 Replies
Solved

Creating migrations on a web server

I am following the laravel tutorial guide for the creation of migrations. In the guide, it says to u...

0 Likes
2 Replies

whereHas() within a where() sub-query.

Howdy! When I try to use a whereHas within a grouped where class, I get an error. Any ideas? $activi...

0 Likes
2 Replies

Setting transient properties on Eloquent models without saving to database?

Is there a way to set a transient property for an Eloquent model that won't save to the database? Fo...

0 Likes
3 Replies
Solved

Trying to query a relation of a relation

##Problem I have an eloquent model "Invoice" that hasMany "InvoiceTicket" that b...

0 Likes
5 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.