public function store(FeaturesRequest $request)
    {
        $feature = Feature::create($request->all());

        return redirect()->route('features.edit', $feature)->with('status', trans('globals.success_text'));
    }
public function store(FeaturesRequest $request)
    {
        $feature = Feature::create($request->all());

        return redirect()->route('features.edit', $feature)->with('status', trans('globals.success_text'));
    }
public function store ( FeaturesRequest $ request ) { $ feature = Feature :: create ( $ request -> all ( ) ) ; return redirect ( ) -> route ( 'features.edit' , $ feature ) -> with ( 'status' , trans ( 'globals.success_text' ) ) ; }
Stores a new feature.

@param  FeaturesRequest $request

@return void
Stores a new feature .