migrate to gtea from bistbucket
This commit is contained in:
13
public/restaurant/app/Traits/RequestSanitizerTrait.php
Normal file
13
public/restaurant/app/Traits/RequestSanitizerTrait.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Traits;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
trait RequestSanitizerTrait
|
||||
{
|
||||
protected function getUpdateRequest(Request $request)
|
||||
{
|
||||
return $request->except(['_method', 'id']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user