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

Filter search results with eloquent or if not whats the other option

Changing my first reply, hehe... <form action="/homes" method="post">...

0 Likes
replied 11 years ago

Fillable and guarded, when to use which

sjamaan is accurate in his last paragraph. However, not all Eloquent models are saving user input, s...

0 Likes
replied 11 years ago

Attach several classes to one Interface in the IoC

Heh, no worries. Your code wasn't wrong it just couldn't be done in a service provider. You could do...

0 Likes
replied 11 years ago

File and directory structure

You can create a custom folder within the app folder for all your own business logic. Maybe call it...

0 Likes
replied 11 years ago

Saving logic in a controller

I think you're close. The model is interacting with the database (reading, writing, etc) and yes it'...

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.