app/Http/Controllers/BranchController.php
/**
     * Remove the specified resource from storage.
     *
     * @param Branch $branch
     * @return JsonResponse
     */
Remove the specified resource from storage.
@param Branch $branch
@return JsonResponse
Remove the specified resource from storage . @param Branch $branch @return JsonResponse
public function destroy(Branch $branch)
    {
        File::delete($branch->image);
        if ($branch->delete()){
            return Helper::response_with_data(null, false);
        }
        return Helper::response_with_data(null, true);
    }
public function destroy ( Branch $ branch ) { File :: delete ( $ branch -> image ) ; if ( $ branch -> delete ( ) ) { return Helper :: response_with_data ( null , false ) ; } return Helper :: response_with_data ( null , true ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .