/**
  * Store a newly created resource in storage.
  *
  * @param  Request  $request
  * @return Response
  */
 public function store(CreateIncentiveRequest $request)
 {
     $incentive = Incentive::create($request->all());
     Session::flash('new', trans('messages.new_incentive'));
     return redirect()->route('dashboard.incentives.index');
 }
Example #2
0
 public static function filterIncentives($award, $product_id)
 {
     return Incentive::name($award)->productid($product_id)->simplePaginate(5);
 }