Skip to content

Instantly share code, notes, and snippets.

<?php
Route::get('/{type?}', function ($type = "") {
// if (in_array($type, ['buy', 'sell'])) {
if ($type == 'buy' || $type == 'sell') {
return view('home', [
'country' => app('App\Http\Controllers\CountriesController')->getCountry(),
]);
}