Support the ongoing development of Laravel.io →
thewinterwind

thewinterwind

Joined 12 May 2014

Statistics

Threads 1
Replies 45
Solutions 4
Articles 0
posted 11 years ago

php artisan routes not working with $_SERVER['HTTP_HOST'] ?

In my app's bootstrap code I need to use $_SERVER['HTTP_HOST'] to do some initialization. Problem is...

0 Likes
3 Replies
Solved
replied 11 years ago

IoC Container resolution error

Get rid of the lib directory and just use Site as a child folder of app Then use psr-4 to autoload e...

0 Likes
replied 11 years ago

Saving logic in a controller

@revati I laugh about this too. And that was only two years ago.

0 Likes
replied 11 years ago

Do some formatting after getting an object from DB

Seems that the difference is just the context in how they are used. For example if we were using the...

0 Likes
replied 11 years ago

Do some formatting after getting an object from DB

Yeah I saw that. I'd say the result is the same with both of them, just depends how you want the cod...

0 Likes
replied 11 years ago

Do some formatting after getting an object from DB

You need a presenter layer. I've had very good luck with this: https://github.com/ShawnMcCool/larave...

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.