Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在Redirect::to()我的新包中使用 laravel 4,我知道它必须在外部调用http://laravel.com/api/class-Illuminate.Routing.Redirector.html但没有运气。我曾经把它放在类名之前:use Illuminate\Routing\Redirector as Redirect但它没有用。那里有遇到或知道解决方案的人吗?
Redirect::to()
http://laravel.com/api/class-Illuminate.Routing.Redirector.html
use Illuminate\Routing\Redirector as Redirect
我发现了一个解决方案。只需Redirect在您的课堂上使用。放在use \Redirect你的课头之前。
Redirect
use \Redirect