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
 /**
  * Store a newly created resource in storage.
  *
  * @param  DashboardWidgetCreateRequest $request
  *
  * @return Reponse
  */
 public function store(DashboardWidgetCreateRequest $request)
 {
     Dashboardwidget::create($request->all());
     return redirect()->route('zxadmin.dashboard.index');
 }