app/Http/Controllers/InvoicesDetailsController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\invoices_details  $invoices_details
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Request $request)
    {
        $attachment = invoices_attachments::findOrFail($request->file_id);
        $attachment->delete();
        Storage::disk('public_uploads')->delete($request->invoices_number.'/'.$request->file_name);
        session()->flash('delete','تم الحذف بنجاح');
        return back() ;
    }
public function destroy ( Request $ request ) { $ attachment = invoices_attachments :: findOrFail ( $ request -> file_id ) ; $ attachment -> delete ( ) ; Storage :: disk ( 'public_uploads' ) -> delete ( $ request -> invoices_number . '/' . $ request -> file_name ) ; session ( ) -> flash ( 'delete' , 'تم الحذف بنجاح'); return back ( ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .