So is laravel showing up or are you getting an error? This webpagshould help you set up PHP on Azure: https://azure.microsoft.com/en-gb/develop/php/
Laravel and Azure
I was wondering if someone can help me. So currently I am hosting a Laravel 5.3 project on Azure. In order to get it working I have to make a web.config file and put it in the public folder. I used this web.config: https://gist.github.com/allebb/7d5d4af32491c11dafc4
However, I am finding that some of the routes that worked in my local dev (it is apache/WAMP) doesn't work at all in Azure. The following example will display "Hello world again" on my local dev and in Azure display error that says, "Missing argument 1 for App\Http\Controllers\HomeController::test()" if I go to http://www.somesite.com/test_reroute
My codes (simplified):
In my web.php:
Route::get("/test_reroute", function(){ $data = ["message" => "Hello world again."]; return redirect()->action('HomeController@test', $data); });
Route::get("/hello/{message}", "HomeController@test");
In my HomeController.php:
class HomeController extends Controller {
public function test($message) {
return $message ? $message : "HELLO WORLD";
}
}
So anybody got ideas? I am thinking I will have to add something to the web.config file. Though I have no idea what that would be, lol.
Please or to participate in this conversation.