To create a backend notification
$postnotification_id = DB::table('articles')->insertGetId([
]);
$config['content'] = Input::get('title_kh');
$config['to'] = CRUDBooster::adminPath('articles/edit/'.$postnotification_id);
$config['id_cms_users'] = [1]; //This is an array of id users
CRUDBooster::sendNotification($config);
Comments
Post a Comment