Skip to content

Instantly share code, notes, and snippets.

@Mombuyish
Created April 14, 2018 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mombuyish/4d2da6f9d2dd72a0724efa7e03efda30 to your computer and use it in GitHub Desktop.
Save Mombuyish/4d2da6f9d2dd72a0724efa7e03efda30 to your computer and use it in GitHub Desktop.
<?php
Route::domain('{location}.example.com')->group(function () {
Route::get('employees/{id}/{name}', 'EmployeesController@show')->name('employees.show');
});
route('employees.show', ['location' => 'raleigh', 'id' => 5, 'name' => 'chris']); // http://raleigh.example.com/employees/5/chris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment