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