Lets say I have incoming url
/writer/$category
It's Route
it written as
Route::get('/writer/{category}', ['uses' => 'WriterController@index']);
Now how to determine in Controller that whether the category
is string or integer.
You can get the type with gettype
function, like this:
dd(gettype($value));
at your controller