Controller for Laravel API