I try to put a validation in a single-action controller and test the API in postman, but it doesn't show anything.
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class BookableAvailabilityController extends Controller
{
public function __invoke(Request $request)
{
$data = $request->validate([
'from' => 'required|date_format:Y-m-d|after_or_equal:now',
'to' => 'required|date_format:Y-m-d|after_or_equal:from',
]);
}
}
and I defined the route in API file:
Route::get('bookables/{bookable}/availability', 'Api\BookableAvailabilityController')
The route is right as it is shown in the route:list

But the postman show the code 200 says everything is OK
