Skip to content

Instantly share code, notes, and snippets.

@kamerk22
Created May 25, 2018 03:01
Show Gist options
  • Save kamerk22/c1e661132c0b12dce6524ea71e90941a to your computer and use it in GitHub Desktop.
Save kamerk22/c1e661132c0b12dce6524ea71e90941a to your computer and use it in GitHub Desktop.
<?php
namespace App\Http\Controllers\API\v1\Users;
use App\Http\Controllers\Controller;
use App\Http\Requests\UserStoreRequest;
class UserController extends Controller
{
public function store(UserStoreRequest $request)
{
// Will return only validated data
$validated = $request->validated();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment