protected function create($namespace, $title, $config, $position, $size)
 {
     return Dashboardwidget::create(['namespace' => $namespace, 'title' => $title, 'config' => $config, 'position' => $position, 'size' => $size]);
 }
Exemple #2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  Dashboardwidget  $dashboardwidget
  *
  * @return Response
  */
 public function destroy(Dashboardwidget $dashboardwidget)
 {
     $dashboardwidget->delete();
     return redirect()->route('zxadmin.dashboard.index');
 }