Ejemplo n.º 1
0
 public function index()
 {
     $clients = DB::table('role_user')->where('role_id', '=', Role::CLIENT_ROLE_ID)->count();
     return view('admin.site.dashboard', ['clients' => $clients, 'campaigns' => Campaigns::count()]);
 }
Ejemplo n.º 2
0
 public function store(CreateCampaignRequest $request)
 {
     $input = $request->all();
     Campaigns::create($input);
     return redirect()->route('campaigns');
 }