Exemplo n.º 1
0
 protected function create($namespace, $title, $config, $position, $size)
 {
     return Dashboardwidget::create(['namespace' => $namespace, 'title' => $title, 'config' => $config, 'position' => $position, 'size' => $size]);
 }
Exemplo n.º 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');
 }