app/Http/Controllers/BrandController.php
/**
     * Remove the specified resource from storage.
     *
     * @param Brand $brand
     * @return JsonResponse
     */
Remove the specified resource from storage.
@param Brand $brand
@return JsonResponse
Remove the specified resource from storage . @param Brand $brand @return JsonResponse
public function destroy(Brand $brand)
    {
        File::delete($brand->image);
        if ($brand->delete()) {
            return Helper::response_with_data(null, false);
        }
        return Helper::response_with_data(null, true);
    }
public function destroy ( Brand $ brand ) { File :: delete ( $ brand -> image ) ; if ( $ brand -> 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 .