Support the ongoing development of Laravel.io →
sherwinncnadev

sherwinncnadev

Joined 5 Feb 2014

Statistics

Threads 16
Replies 14
Solutions 1
Articles 0

How to override the Model that morphTo will create?

Hi guys! I have a posts table having these fields id content post_type media_id postable_type The...

0 Likes
0 Replies
posted 11 years ago

Where is the complete list/documentation of laravel helpers?

Hi guys! I've seen the http://laravel.com/docs/helpers link but I'm not sure if this is the complete...

0 Likes
2 Replies

How do you create a model relationship base on a column value?

Hi guys! I have a comments table and this table has four fields which are : id post_id type_id comm...

0 Likes
1 Replies
Solved

What is the proper way to set up a model to refer to a table in a different database?

Hi guys! I have two databases main and beta. In my database.php file I have setup the connection to...

0 Likes
2 Replies
Solved

What is the proper way to isolate data processes in sub-views?

Hi everyone! I have a sub-view (which i call widget) in my pages which accepts a parameter, and this...

0 Likes
9 Replies
Solved
replied 9 years ago

Instantiating objects base from type

Also, If different product types have different attributes, how should my repository create function...

0 Likes
replied 9 years ago

Issue encountered when using the specification pattern + repository pattern

My specification class implements an interface that requires the class to create a toSql function, I...

0 Likes
replied 11 years ago

How to create a variable accessible to all controllers and views?

@Stolz Thanks! I finally decided to use Laravel's IoC!

0 Likes
replied 11 years ago

How to create a variable accessible to all controllers and views?

I have an object that I want to be accessible within controllers and views.

0 Likes
replied 11 years ago

Relationships

The first solution that popped in my head is you could create a recursive function that accepts an e...

0 Likes

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.

© 2026 Laravel.io - All rights reserved.