How to work with laravel sub-domain routing with laragon ?

  • | 953 points

    I cant get it working with sub domain routing with laravel.

    i tried various things .

    a sample code

    Route::group(['domain' => '{dynamic_sd}'], function(){
          Route::get('/', function($dynamic_sd){

    but when i call url ""

    it gives error

    "This site can’t be reached"

    please tell me how to work with it.

  • administrators
    | 127184 points

    Have you already got DNS record for (in hosts file or DNS system,...)?

Log in to reply

Looks like your connection to Laragon was lost, please wait while we try to reconnect.