except usage in laravel

By | November 15, 2016

if you want to except name field in the post method in the controller

direct usage of Request
and Request $request->

public function test(Request $request)
{
$request->except(‘name’);

}
public function test()
{
Request::except(‘name’);

}