src/Media/Http/Controllers/MediaAdminController.php
public function postCreate(MediaCreateRequest $request)
    {
        $media = Media::create($request->all());

        return redirect($this->admin->currentUrl('view/'.$media->id))->with('notifications_below_header', [['type' => 'success', 'icon' => 'check-circle', 'title' => 'Success!', 'message' => 'Your Media was successfully added.', 'dismissable' => false]]);
    }
public function postCreate(MediaCreateRequest $request)
    {
        $media = Media::create($request->all());

        return redirect($this->admin->currentUrl('view/'.$media->id))->with('notifications_below_header', [['type' => 'success', 'icon' => 'check-circle', 'title' => 'Success!', 'message' => 'Your Media was successfully added.', 'dismissable' => false]]);
    }
public function postCreate ( MediaCreateRequest $ request ) { $ media = Media :: create ( $ request -> all ( ) ) ; return redirect ( $ this -> admin -> currentUrl ( 'view/' . $ media -> id ) ) -> with ( 'notifications_below_header' , [ [ 'type' => 'success' , 'icon' => 'check-circle' , 'title' => 'Success!' , 'message' => 'Your Media was successfully added.' , 'dismissable' => false ] ] ) ; }
Processes a new Media Request.

@return \Illuminate\Http\RedirectResponse
Processes a new Media Request .