public function store() { $promotion = new promotion(); $promotion->project_id = Auth::user()->curr_project_id; $promotion->name = Input::get('name'); $promotion->description = Input::get('description'); $promotion->discount = Input::get('discount'); $promotion->nominal = Input::get('nominal'); $promotion->last_valid = Input::get('last_valid'); $promotion->save(); Session::flash('message', 'Sukses menambahkan promo baru'); }