php - laravel Creating default object from empty value -


i have function of this

function notifystore($storeid, $notification,$type, $link) {     $notify = new app\store_notification;     $notify->store_id = $storeid;     $notify->notification = $notification;     $notity->link = $link;     $notify->type = $type;     $notify->save(); } 

and in controller

$order = new store_order;     $orderarray['user_id'] = $signed['user_id'];     $orderarray['store_id'] = $store->store_id;     $orderarray['payment_method'] = $signed['payment_id'];     $orderarray['address_info'] = $signed['address'];     $orderarray['invoice_id'] = $signed['invoice_id'];     $orderarray['order_status'] = 2;     $orderarray['created_at'] = carbon::now()->format('y-m-d h:i:s');     $invoice = $order->insertgetid($orderarray);     notifystore($store->store_id,"you have order review",3,$signed['invoice_id']); 

but every time submit order generates error. don't know what's wrong it. says error on line 74 , line 74 $notity->link = $link;. can please check , tell me what's wrong?

error

at handleexceptions->handleerror(2, 'creating default object empty value', 'c:\\wamp64\\www\\abcproject\\app\\http\\helper.php', 74, array('storeid' => 1, 'notification' => 'you have order review', 'type' => 3, 'link' => '2017-1-6-888-8280', 'notify' => object(store_notification), 'notity' => object(stdclass))) in helper.php line 74 

it because have entity named wrong. @ line 74 have

$notity->link = $link; 

you have written notity whereas variable name notify


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -