I have a laravel project under www.mysite.com
and a second project under alias www.mysite.com/portal
.
For my second project, my route isn't loading anything. When I go to www.mysite.com/portal
i'm expecting to redirect to www.mysite.com/portal/test
which is happening. I see the url change to www.mysite.com/portal/test
but nothing is loading. This is what I see. Why is this happening? I can't figure out why i'm not seeing Hello World
. Locally everything is working properly.
I did copy my /vendor
from another project to this one. Don't know if that has anything to do with this issue.
I've tried all these commands
php artisan cache:clear
php artisan view:clear
php artisan route:clear
php artisan clear-compiled
php artisan config:cache
These are my routes.
Route::group(['middleware' => ['web']], function () {
Route::get('/test', ['as'=>'get_test', 'uses'=>'AccountController@test']);
Route::get('/', function () { return \Redirect::route("get_test"); });
});
Controller
class AccountController extends Controller{
public function test(Request $request){
return "hello world";
}
}
This is what I have in my .env file
APP_NAME=Laravel
APP_ENV=local
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost