app/Http/Controllers/UrlController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Models\Url  $url
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Url $url)
    {
        $url->delete();
        return redirect()->route('url.index')
            ->with('success', 'Url deleted successfully');
    }
public function destroy ( Url $ url ) { $ url -> delete ( ) ; return redirect ( ) -> route ( 'url.index' ) -> with ( 'success' , 'Url deleted successfully' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .