User Order step1

This commit is contained in:
Kevin Adametz 2020-08-07 16:02:03 +02:00
parent eb55b01b0d
commit a5db985ae8
90 changed files with 6439 additions and 421 deletions

View file

@ -41,7 +41,7 @@ class ProductController extends Controller
public function edit($id)
{
if($id == "new"){
if($id === "new"){
$model = new Product();
$model->active = true;
}else{
@ -66,7 +66,7 @@ class ProductController extends Controller
);
$validator = Validator::make(Request::all(), $rules);
if($data['id'] == "new"){
if($data['id'] === "new"){
$model = new Product();
}else{
$model = Product::findOrFail($data['id']);