app/Http/Controllers/ActivityController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  App\Http\Requests\StoreUpdateActivityRequest  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(StoreUpdateActivityRequest $request)
    {
        $data = $request->only('name', 'description');
        $this->repository->create($data);
        return redirect()->route('activities.index');
    }
public function store ( StoreUpdateActivityRequest $ request ) { $ data = $ request -> only ( 'name' , 'description' ) ; $ this -> repository -> create ( $ data ) ; return redirect ( ) -> route ( 'activities.index' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .