Skip to content

Instantly share code, notes, and snippets.

@Konafets
Last active October 26, 2017 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Konafets/31acec0f07467566b8a7b52cc55aad0c to your computer and use it in GitHub Desktop.
Save Konafets/31acec0f07467566b8a7b52cc55aad0c to your computer and use it in GitHub Desktop.
PostController with FormRequest
<?php namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use App\Http\Requests\SingingCircleRequest;
class PostController extends Controller
{
public function store(PostStoreRequest $request)
{
// You can just pull the data out of PostStoreRequest
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment