User Order step1
This commit is contained in:
parent
eb55b01b0d
commit
a5db985ae8
90 changed files with 6439 additions and 421 deletions
|
|
@ -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']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue