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

Public properties in Eloquent class

You should do what's right for your code, even if it inconveniences you within your editor. Perhaps...

0 Likes
replied 11 years ago

Attach several classes to one Interface in the IoC

@moon0326 IoC bindings are usually made in service providers, however you can't call Route::currentR...

0 Likes
replied 11 years ago

Special character in Redirect::to()

Nope you're not wrong! Try this: Route::get('sale_add_item/{alias}/{item_id?}', function($alias, $it...

0 Likes
replied 11 years ago

Special character in Redirect::to()

Syntax errors. Route::get('sale_add_item/{alias}/{item_id}', function($alias, $item_id) { });

0 Likes
replied 11 years ago

Generic Model in a Package to accept additional properties

If the value of total is unit_price * quantity then you don't need to store total. That's part secon...

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.