Which way for creating delete link?



  • Hi

    I add new route for deleting entity like this:

    delete('comic/{comic}', ['as' => $locale.'.comic.delete', 'uses' => 'ComicController@delete']);

    Then I created a form for showing delete button:

    {!! Form::open(['method' => 'DELETE', 'route' => [$locale.'.comic.delete', $oComic->id]]) !!}
    {!! Form::submit('Delete',
    array('class'=>'btn btn-default')) !!}
    {!! Form::close() !!}

    My question is: another way to display Delte button without delete form, but it can direct to the above route like submit form. Is there any way?


Log in to reply
 

Looks like your connection to AsgardCms was lost, please wait while we try to reconnect.