Lestah
6 months ago

syntax error, unexpected '{'

Posted 6 months ago by Lestah

it says in line 17

public function addProduct(Request $request)
    {
        if($request->isMethod('post')){
            $data = $request->all();
            //echo "<pre>"; print_r($data); die;
            if(empty($data(['cateogry_id'])){
                return redirect()->back()->with('flash_message_error','Under Category is mssing');
            }

this line of code is up till line 20? did i miss something?

Please sign in or create an account to participate in this conversation.