app/Http/Controllers/TaskController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Models\Task  $task
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Task $task)
    {
        $task->delete();
        return $task->name." is deleted successfully";
    }
public function destroy ( Task $ task ) { $ task -> delete ( ) ; return $ task -> name . "  is deleted successfully " ; }
Remove the specified resource from storage.
Remove the specified resource from storage .