app/Http/Controllers/PerkenController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(Request $request)
    {
      $input['persenjual'] = $request->persenjual;
      Perken::create($input);
      return redirect()->route('persen-keuntungan.index');
    }
public function store ( Request $ request ) { $ input [ 'persenjual' ] = $ request -> persenjual ; Perken :: create ( $ input ) ; return redirect ( ) -> route ( 'persen-keuntungan.index' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .